J
Jalil
My code below works fine when I am no using web proxy:
//login and pwd is for the remote server.
NetworkCredential netCredential = new NetworkCredential(login,pwd);
WebClient client = new WebClient();
client.Credentials = netCredential;
Console.WriteLine(client.DownloadString(RequestUrl));
However, when I run behind a proxy I get an exception that I need to
authenticate to the proxy.
How would I do this in my program? I read in the doc the WebClient by
default uses IE proxy settings? Is that true?
Thanks,
-Jalil
//login and pwd is for the remote server.
NetworkCredential netCredential = new NetworkCredential(login,pwd);
WebClient client = new WebClient();
client.Credentials = netCredential;
Console.WriteLine(client.DownloadString(RequestUrl));
However, when I run behind a proxy I get an exception that I need to
authenticate to the proxy.
How would I do this in my program? I read in the doc the WebClient by
default uses IE proxy settings? Is that true?
Thanks,
-Jalil