httpwebrequest with https behind proxy with authentication
- From: "Andrea Pierini" <andrea_maticad@xxxxxxxxxxxxx>
- Date: Thu, 6 Dec 2007 16:26:19 +0100
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
.
- Follow-Ups:
- RE: httpwebrequest with https behind proxy with authentication
- From: Steven Cheng[MSFT]
- RE: httpwebrequest with https behind proxy with authentication
- Prev by Date: Which is the beset newsgroup to ask questions regarding DirectoryServices (C#)??
- Next by Date: Re: Exception Handling in 2.0
- Previous by thread: Which is the beset newsgroup to ask questions regarding DirectoryServices (C#)??
- Next by thread: RE: httpwebrequest with https behind proxy with authentication
- Index(es):
Relevant Pages
|