In a server / client environment, I need to send a plain text file over the HTTP protocol.
Typical scenario:
A client joins the server, and the server sends a string telling the client a url to download a text file. The URL would be:
"IP:PORT/folder/folder/file.txt" (where 'IP' and 'PORT' are actual IP's and Ports IE: 127.0.0.1:1234)
I need the server to allow a connection to the files location, and the files location alone. The client is closed source, and so I have no control over its code. It should act like a HTTP server, but only for that file, or at least the subfolder. You should be able to type in the URL into a browsers address and read the contents of the file.
What's the best way of doing this?
NetworkStreamandStreamReader/StreamWriter. I could do with rewriting the entire thing so I know what's going on.