title: C# - Send a file over HTTP
body: <p>In a server / client environment, I need to send a plain text file over the HTTP protocol.</p>
  
  <p>Typical scenario:<br />
  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: </p>
  
  <blockquote>
    <p>"IP:PORT/folder/folder/file.txt" (where 'IP' and 'PORT' are actual
    IP's and Ports IE: 127.0.0.1:1234)</p>
  </blockquote>
  
  <p>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.</p>
  
  <p>What's the best way of doing this?</p>