Commit Graph
10 Commits
Author SHA1 Message Date
Martin Baulig e6ce33bc7d [Http]: Read version from "HTTP CONNECT" response.
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.
2014-06-05 21:31:31 +02:00
Martin Baulig b049dfb1a4 [6329][Web]: Fixed abort race condition in WebConnection.ReadDone().
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'.
2012-10-27 00:56:00 +02:00
Martin Baulig 3118e82bfa [#7258][Web]: Fix proxy authentication for secure connections.
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".
2012-10-18 00:45:37 +02:00
Marek Safar 9069d07837 Don't double dispose web connection 2012-06-22 12:29:11 +01:00
Gonzalo Paniagua Javier 07c165832b 2008-10-23 Gonzalo Paniagua Javier <[email protected]>
* 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
2008-10-23 19:11:33 +00:00
Gonzalo Paniagua Javier 2b452afac5 2006-04-26 Gonzalo Paniagua Javier <[email protected]>
* 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
2006-04-26 21:16:16 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Gonzalo Paniagua Javier 063eec915c 2003-11-17 Gonzalo Paniagua Javier <[email protected]>
* 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
2003-11-17 16:24:15 +00:00
Gonzalo Paniagua Javier 3c6f61256d 2003-10-02 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: handle 304 � la MS.
	* WebConnection.cs: set the response data when reading 0 bytes.

svn path=/trunk/mcs/; revision=18518
2003-10-02 04:44:48 +00:00
Gonzalo Paniagua Javier cc8432099d Reworked HttpWebRequest and related classes.
svn path=/trunk/mcs/; revision=15149
2003-06-06 06:57:36 +00:00