A
Andrea Pierini
Hi to all,
I have a problem to download a file with httpwebrequest when
_ https protocol is used
_ the client is behind a proxy that requires authentication
For example consider the following code:
WebRequest req =
WebRequest.Create("https://www.domus3d.com/ws/test.txt");
req.Proxy = new WebProxy("http://192.168.0.6:3128", true); //
Proxy available at IP 192.168.0.6 on port 3128
req.Proxy.Credentials = new NetworkCredential("user", "pwd",
"domain"); // Proxy network credentials
WebResponse res = req.GetResponse();
I always receive "The remote server returned an error: (407) Proxy
Authentication Required.". What's wrong? Note that if I make the request
over http the code works and with Internet Explorer I can open the file
either over http or over https.
Thanks in advance for any help,
Andrea Pierini
PS: I've seen that many users experience the same problem with WSUS 3.0
behind a proxy with authentication
I have a problem to download a file with httpwebrequest when
_ https protocol is used
_ the client is behind a proxy that requires authentication
For example consider the following code:
WebRequest req =
WebRequest.Create("https://www.domus3d.com/ws/test.txt");
req.Proxy = new WebProxy("http://192.168.0.6:3128", true); //
Proxy available at IP 192.168.0.6 on port 3128
req.Proxy.Credentials = new NetworkCredential("user", "pwd",
"domain"); // Proxy network credentials
WebResponse res = req.GetResponse();
I always receive "The remote server returned an error: (407) Proxy
Authentication Required.". What's wrong? Note that if I make the request
over http the code works and with Internet Explorer I can open the file
either over http or over https.
Thanks in advance for any help,
Andrea Pierini
PS: I've seen that many users experience the same problem with WSUS 3.0
behind a proxy with authentication