I am attempting to download a file from a web server e.g.
http://web.server.com/getfile=2
Now in the web browser I can do this, since I have authenticated myself and can view the cookie allowing to access the file.
I have done a fair bit of research and believe a cookie container would hold the cookie, although I am unable to determine how then you can download this file from within C# using the CookieContainer
Make a HTTP get request to the page containg cookie, store the cookie and attach to second request to getfile.
ToDo: Add a sample