[Mono-list] WebRequest.DefaultWebProxy with credentials fails
Christian Gan
christian.gan at librestream.com
Tue Sep 18 18:51:26 UTC 2012
Runtime:
Mono 2.10.9 (tarball)
GTK 2.24.10
GTK# (2.12.0.0)
Package version: 210090011
Apple Developer Tools:
Xcode 4.3.2 (1177)
Build 4E2002
Monotouch: 5.2.12
We're using a Web Reference to consume services from several of our servers.
The issue is that when we attempt to use
WebRequest.DefaultWebProxy.Credentials, the service calls fail to properly
authenticate to our proxy server (Squid 2.7.STABLE8).
A capture from Wireshark shows something like this:
1. Request: CONNECT ourserver.com:443 HTTP 1.0
2. Response: HTTP/1.1 407 Proxy Authentication Required (text/html)
Proxy-Authenticate: Digest realm... etc.
Connection: Close
3. Request: CONNECT ourserver.com:443 HTTP 1.0
Proxy-Authorization: Digest username... etc.
The issue is that in the response (2), the squid server requests the current
TCP connection to be closed (and in fact, it also sends a FIN right after the
407), but the client sends the request with authentication (3) on the same TCP
connection instead of initiating a new one (which gets eventually RST by the
proxy server).
Our .NET version of the same above code running on Windows works as expected.
Anyone else seeing an issue with proxy authentication? I've tested with both
digest and NTLM authentication.
https://bugzilla.xamarin.com/show_bug.cgi?id=7258
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120918/c5e6fb03/attachment.html>
More information about the Mono-list
mailing list