My code below works fine when I am no using web proxy:
//login and pwd is for the remote server.
NetworkCredenti al netCredential = new NetworkCredenti al(login,pwd);
WebClient client = new WebClient();
client.Credenti als = netCredential;
Console.WriteLi ne(client.Downl oadString(Reque stUrl));
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.
NetworkCredenti al netCredential = new NetworkCredenti al(login,pwd);
WebClient client = new WebClient();
client.Credenti als = netCredential;
Console.WriteLi ne(client.Downl oadString(Reque stUrl));
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
Comment