When using "HTTP CONNECT" to create a tunnel to a proxy server,
check the proxy server's response for the HTTP Version and close
the connection if it's HTTP/1.0.
ReadDone() now passes the 'WebConnectionData' instance to GetResponse()
and 'readState' has been moved into 'WebConnectionData'.
Abort() can now reset 'Data' while ReadDone() still uses the old
instance, but learns about the abort request from 'data.ReadState'.
In WebConnection.CreateTunnel():
* Support multi "Proxy-Authentication" headers from the server.
* Pass a fake HttpWebRequest with method "CONNECT" to
AuthenticationManager.Authenticate(); the HTTP method is part
of the digest response.
* Add "Proxy-Connection: Keep-Alive".
* HttpWebRequest.cs: don't call ProxyRequest twice.
* WebConnectionData.cs: remove unused fields.
* WebConnection.cs:
* WebConnectionStream.cs: when setting the input buffer, check to see
if the entire response is already there and free up the request slot.
Fixes bug #423156.
* ResponseStream.cs:
* HttpListenerResponse.cs: buffer the headers so that they are sent
together with the data on the first Write (if any). The fix above
didn't work with our HttpListener without this.
svn path=/trunk/mcs/; revision=116868
* WebConnectionData.cs:
* WebConnection.cs:
* HttpWebRequest.cs: when tunneling an ssl conneciton through a proxy,
we were not handling a proxy authentication request. Fixes bug #78150
take 2.
svn path=/trunk/mcs/; revision=59952
* WebConnection.cs: turns out that socket.Connected is not useful until
we actually try to send/receive data, even if the other end has already
closed the socket. Added TryReconnect() and Connected.
* WebConnectionData.cs: default value for StatusCode is 0 now.
* WebConnectionGroup.cs: reuse the connection since the beginning,
instead of opening up to ConnectionLimit and then reusing.
* WebConnectionStream.cs: reopen the socket if we're trying to reuse
one which fails on first write.
svn path=/trunk/mcs/; revision=20117