Proxy Unames and Pass with DownloadFile
Hi all
Just wondering if anyone knows how i can get through my proxy when trying to use WebClient.DownloadFile
The error i get is ...
System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at System.Net.WebClient.DownloadFile(String address, String filename)
at PeepingTom_CSharp.classificationThreadContainer.downloadFile(String url) in e:\summerwork\peepingtim-csharp\landcclass.cd:line 1312
Obviously it wan't me to authenticate and the http request is already doing this (that is the browser i have in the same window asks for the uname and pass and gets the page fine) but i can't seem to find a way to make the downloadFile method ask.
Any ideas?