Commit Graph
197 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 5ded01db1e 2004-07-26 Gonzalo Paniagua Javier <[email protected]>
* WebProxy.cs: fix scheme detection. Patch by Konstantin Triger
	([email protected]).

svn path=/trunk/mcs/; revision=31477
2004-07-26 18:02:17 +00:00
Gonzalo Paniagua Javier 3a58628a3b 2004-07-16 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: detect changes in scheme or port when redirecting.
	Fixes las take on bug 61218.

svn path=/trunk/mcs/; revision=31207
2004-07-16 04:48:18 +00:00
Gonzalo Paniagua Javier 4110f272ba 2004-07-14 Gonzalo Paniagua Javier <[email protected]>
* Mono.Security/Mono.Security.Protocol.Tls/HttpsClientStream.cs: get
	an HttpWebRequest so that we can use the ServicePoint it has. No
	need to get the host now.

	* System/System.Net/WebConnection.cs: moved loading of the ssl stream
	Type to its own method. Don't create a new ssl stream if we're reusing
	the connection.

	* System/System.Net/WebConnectionStream.cs: ensure the number of bytes
	copied in ReadAll is the expected even if the dta from the server has
	extra bytes.

	Partial fix for bug #61218. Still problems with POST.

svn path=/trunk/mcs/; revision=31134
2004-07-14 13:52:29 +00:00
Gonzalo Paniagua Javier 7416bb8d6f 2004-07-11 Gonzalo Paniagua Javier <[email protected]>
* debug-helpers.c: prevent SIGSEGV. It happened running xsp on monodoc
	when no HOME env. variable was set and a NullRef was thrown in a .cctor
	called from other .cctors.

svn path=/trunk/mcs/; revision=31024
2004-07-12 01:37:58 +00:00
Gonzalo Paniagua Javier 2f46599cce 2004-07-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: removed bogus Monitor.Exit.
	* WebConnection.cs: use Address instead of RequestUri when checking for
	the scheme in order to select the stream type. Fixes bug #61218.

svn path=/trunk/mcs/; revision=30900
2004-07-08 23:08:44 +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 671f8b5ce6 2004-06-06 Gonzalo Paniagua Javier <[email protected]>
* ChunkStream.cs: added ChunkLeft property.
	* WebConnection.cs:
	(EndRead): when using small byte arrays to read from a chunked stream,
	ensure we've read the chunk size and try to fulfill the request
	completely. fixes bug 59653.

svn path=/trunk/mcs/; revision=28915
2004-06-06 17:41:06 +00:00
Gonzalo Paniagua Javier e803963be2 2004-05-29 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: fixed CanRead property. Closes bug #59273.

svn path=/trunk/mcs/; revision=28412
2004-05-28 23:54:19 +00:00
Gonzalo Paniagua Javier 6f1dbe972c 2004-05-28 Gonzalo Paniagua Javier <[email protected]>
* DigestClient.cs: cache the sessions based on address and
	credentials, not only address. Added poor men's expiration to
	the session cache. Fixes bug #59202.

svn path=/trunk/mcs/; revision=28316
2004-05-27 23:19:35 +00:00
Gonzalo Paniagua Javier 01040c6fdd 2004-05-26 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs:
	* IPEndPoint.cs:
	* IPv6Address.cs: no more warnings about IPAddress.Address.

svn path=/trunk/mcs/; revision=28086
2004-05-25 21:28:41 +00:00
Gonzalo Paniagua Javier d51339b19b *** empty log message ***
svn path=/trunk/mcs/; revision=28083
2004-05-25 21:12:04 +00:00
Gonzalo Paniagua Javier 8e70fc3962 2004-05-18 Gonzalo Paniagua Javier <[email protected]>
* WebException.cs: implemented serialization .ctor and GetObjectData().

svn path=/trunk/mcs/; revision=27544
2004-05-17 23:19:06 +00:00
Gonzalo Paniagua Javier 95ed6c4c40 2004-05-13 Gonzalo Paniagua Javier <[email protected]>
* WebAsyncResult.cs: don't create the WaitHandle if not needed.

svn path=/trunk/mcs/; revision=27219
2004-05-13 03:37:35 +00:00
Gonzalo Paniagua Javier ec49116c9e 2004-05-13 Gonzalo Paniagua Javier <[email protected]>
* System.Net/HttpWebRequest.cs: added 3 missing properties for 1.1. They
	are not used yet.

	* System.Net/NetConfig.cs: added MaxResponseHeadersLength field.

	* System.Net/ServicePoint.cs:
	* System.Net/ServicePointManager.cs: added missing properties for 1.1.

	* System.Net.Configuration/NetConfigurationHandler.cs: process the
	httpWebRequest node too. Better error checking.

svn path=/trunk/mcs/; revision=27211
2004-05-13 02:26:55 +00:00
Gonzalo Paniagua Javier 21a0b91547 Removed Consoles and ^Ms
svn path=/trunk/mcs/; revision=27210
2004-05-13 02:13:57 +00:00
Gonzalo Paniagua Javier ce62c7590a Removed Consoles and ^Ms
svn path=/trunk/mcs/; revision=27209
2004-05-13 02:05:19 +00:00
Sebastien Pouliot 3664d705e2 2004-05-03 Sebastien Pouliot <[email protected]>
* WebConnection.cs: Added missing Consts.

svn path=/trunk/mcs/; revision=26635
2004-05-03 20:06:32 +00:00
Sebastien Pouliot 0a531ec57c 2004-05-03 Sebastien Pouliot <[email protected]>
* WebConnection.cs: Use assembly name const to load Mono.Security.

svn path=/trunk/mcs/; revision=26628
2004-05-03 19:34:22 +00:00
Lluis Sanchez d51db8022f * NtlmClient.cs: Use assembly name const to load Mono.Security.
svn path=/trunk/mcs/; revision=26626
2004-05-03 19:25:34 +00:00
Gonzalo Paniagua Javier 849f938123 2004-04-24 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: avoid the exception when getting the content
	length if possible.

svn path=/trunk/mcs/; revision=25912
2004-04-24 01:23:49 +00:00
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Gonzalo Paniagua Javier ddb3f5549f Removed unused fields
svn path=/trunk/mcs/; revision=25812
2004-04-22 03:02:16 +00:00
Lluis Sanchez 5b6c491d20 * HttpWebRequest.cs: Use a lock block instead of Monitor.Enter/Exit, so
the lock is released in case of exception (for example, a
	ThreadAbortException). This also "fixes" bug #52417.
	Beware, this requires a runtime update (due to a bug in Monitor.Exit).
	* ServicePoint.cs: Changed method from internal to private, since it is not
	called from outside the class.

svn path=/trunk/mcs/; revision=24704
2004-03-29 12:17:03 +00:00
Gonzalo Paniagua Javier b24f2374e0 2004-03-24 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: added the exception status to the error message.
	* WebConnection.cs: add headers using SetInternal instead of Add to
	bypass header name validation. Fixes bug #55994.
	* WebHeaderCollection.cs: added SetInternal (string header).

svn path=/trunk/mcs/; revision=24549
2004-03-24 22:06:56 +00:00
Gonzalo Paniagua Javier 8d801ed6b3 2004-03-04 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs:
	* WebConnectionGroup.cs: the requests queue is now shared for all the
	connections belonging to the same connection group.

svn path=/trunk/mcs/; revision=23695
2004-03-04 17:28:27 +00:00
Sebastien Pouliot a8e2c3fb6e 2004-02-26 Sebastien Pouliot <[email protected]>
* DefaultCertificatePolicy.cs: New. Certificate validation
	policy compatible with the documented one present in Fx. It
	allows valid certificates and expired certificates to be used
	for SSL connections.
	* ServicePointManager.cs: Removed the DummyPolicy. Now creates
	a DefaultCertificatePolicy to validate certificates.

svn path=/trunk/mcs/; revision=23493
2004-02-26 18:48:09 +00:00
Gonzalo Paniagua Javier 167ad12050 2004-02-26 Gonzalo Paniagua Javier <[email protected]>
* ServicePoint.cs: SendContinue is always false for HTTP/1.0

	* WebConnection.cs: get rid of WaitForContinue() (yes!) and prevent
	calling more the ContinueDelegate more than once when we get the
	headers in several packets.

	* WebConnectionStream.cs: removed call to WaitForContinue.

svn path=/trunk/mcs/; revision=23477
2004-02-26 01:35:43 +00:00
Sebastien Pouliot 8a014ba092 2004-02-25 Sebastien Pouliot <[email protected]>
* WebConnection.cs: Update previous patch to use HttpsClientStream
	(internal in Mono.Security assembly) in place of SslClientStream.
	This will reduce reflection and allow to use ICertificatePolicy.

svn path=/trunk/mcs/; revision=23469
2004-02-25 20:50:21 +00:00
Gonzalo Paniagua Javier cbb4a1f031 updated
svn path=/trunk/mcs/; revision=23442
2004-02-25 14:41:02 +00:00
Gonzalo Paniagua Javier b061603e78 2004-02-25 Gonzalo Paniagua Javier <[email protected]>
* DigestClient.cs: fix quote handling. Reordered attributes in response.
	Fixed typo (QOP->CNonce).

svn path=/trunk/mcs/; revision=23441
2004-02-25 14:34:42 +00:00
Gonzalo Paniagua Javier 03131505b1 2004-02-25 Gonzalo Paniagua Javier <[email protected]>
* DigestClient.cs: removed Console.
	* HttpWebRequest.cs: 401/407 were hanging for GET. Fixed.

svn path=/trunk/mcs/; revision=23431
2004-02-25 09:44:23 +00:00
Sebastien Pouliot a61c145e4d 2004-02-18 Sebastien Pouliot <[email protected]>
* DigestClient.cs: Fixed issue with Apache server which do not use "
	for specifying the digest algorithm (.e.g. algorithm=MD5 not ="MD5").

svn path=/trunk/mcs/; revision=23424
2004-02-25 02:39:04 +00:00
Gonzalo Paniagua Javier 17b507ebdf 2004-02-20 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: arghhh. I used the server response headers instead
	of what the client is supposed to send. Thanks to Helge Hess.

svn path=/trunk/mcs/; revision=23275
2004-02-20 05:26:01 +00:00
Gonzalo Paniagua Javier 3d9b156cbf 2004-02-19 Gonzalo Paniagua Javier <[email protected]>
* AuthenticationManager.cs: implemented PreAuthenticate().

	* HttpWebRequest.cs: once we know the version of the server, use it if
	below the requested one. Remove 'Expect', 'Content-Length' and /or
	'Transfer-Encoding' if appropiate due to changes in version. Fixed
	'Host' header for non-standard ports. Support preauthentication. Closes
	bug #50530.

svn path=/trunk/mcs/; revision=23260
2004-02-19 18:44:08 +00:00
Gonzalo Paniagua Javier f91515a25e 2004-02-19 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: check for missing or wrong URI in Location header
	when redirecting.

	* WebConnection.cs: if the data read does not contain all the headers,
	keep it around and read the rest until we get to the response body.
	Allow response code with no description. Fixed bug #54543.

svn path=/trunk/mcs/; revision=23244
2004-02-19 03:05:19 +00:00
Sebastien Pouliot 4024cd5c4c 2004-02-18 Sebastien Pouliot <[email protected]>
* SecurityProtocolType.cs: Added missing [Serializable] to enum. Added
	Default and Ssl2 to NET_1_2 profile. Enum is now internal for NET_1_0
	profile (as we need it for SslClientStream).
	* ServicePoint.cs: Added internal SetCertificates(client,server).
	* ServicePointManager.cs: Added CheckCertificateRevocationList and
	CheckCertificateRevocationList static properties (public in 1.1,
	internal for 1.0).
	* WebConnection.cs: Dynamically creates a SslClientStream (from
	Mono.Security assembly) in case of https. Changed NetworkStream to
	Stream everywhere.

svn path=/trunk/mcs/; revision=23225
2004-02-18 17:58:22 +00:00
Gonzalo Paniagua Javier ed924f816b 2004-02-18 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: send the 'Connection: keep-alive' header when we
	don't know the server version or it's 1.0.

	* ServicePoint.cs: added SetVersion.

	* WebAsyncResult.cs: remove ChunkAsyncResult.

	* WebConnection.cs: set the ServicePoint version when getting a response
	from the server.

	* WebConnectionStream.cs: when posting chunked content, send the head,
	body and trailer of the chunk at once instead of doing 3 separate
	writes, which may cause troubles.

svn path=/trunk/mcs/; revision=23223
2004-02-18 17:14:37 +00:00
Gonzalo Paniagua Javier 878ba57cae 2004-02-18 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: if we get a 100 when we're not waiting for it, set
	that information in the ServicePoint.

	* WebConnectionStream.cs: send headers in the right order for
	non-chunked POST.

svn path=/trunk/mcs/; revision=23204
2004-02-18 11:16:20 +00:00
Gonzalo Paniagua Javier bcd6f4d57b 2004-02-17 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: fixed nullrefs in BeginWrite/EndWrite.

svn path=/trunk/mcs/; revision=23176
2004-02-17 17:27:08 +00:00
Gonzalo Paniagua Javier 5a151643b6 Thanks Lluis for noticing this.
svn path=/trunk/mcs/; revision=23162
2004-02-17 09:18:05 +00:00
Gonzalo Paniagua Javier 7caef67a07 2004-02-17 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: on second and sucesive tries when authenticating,
	don't use chunked encoding for POST, as we know the content length and
	have the body. Nullify bodyBuffer always in CheckFinalStatus.

	* WebAsyncResult.cs: added ChunkAsyncResult property. It holds the
	IAsyncResult when writing CRLF at the end of a chunk.

	* WebConnectionStream.cs: support sending chunked data.

svn path=/trunk/mcs/; revision=23153
2004-02-17 01:36:39 +00:00
Lluis Sanchez cbf03321ee * HttpWebRequest.cs: When retrying a POST request after an authentication
failure, resend the body. This fixes bug #51841.
	* WebConnectionStream.cs: Added properties for getting what's been written.

svn path=/trunk/mcs/; revision=23121
2004-02-16 10:18:23 +00:00
Gonzalo Paniagua Javier a0ec7a5cf7 2004-02-12 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: don't send 'Expect: 100-continue' for 1.0 version.

svn path=/trunk/mcs/; revision=23033
2004-02-12 17:58:44 +00:00
Gonzalo Paniagua Javier cc88fca10b aaargh
svn path=/trunk/mcs/; revision=23009
2004-02-12 01:48:38 +00:00
Gonzalo Paniagua Javier 674ed42fa1 2004-01-16 Gonzalo Paniagua Javier <[email protected]>
* System.Text.RegularExpressions/parser.cs: an opening brace without a
	quantifier do not cause a parse error. Fixes bug #52924.
	* Test/System.Text.RegularExpressions/RegexBugs.cs: added test from
	bug #52924.

svn path=/trunk/mcs/; revision=23008
2004-02-12 01:40:36 +00:00
Gonzalo Paniagua Javier 1ccd257868 2004-02-12 Gonzalo Paniagua Javier <[email protected]>
* BasicClient.cs:
	* DigestClient.cs: use IndexOf instead of StartsWith to deal with
	servers that provide several authentication schemas.

svn path=/trunk/mcs/; revision=23007
2004-02-12 01:38:48 +00:00
Gonzalo Paniagua Javier c48e993d10 2004-02-12 Gonzalo Paniagua Javier <[email protected]>
* ChunkStream.cs: use an array of buffers instead of a MemoryStream for
	storing the chunks. This way, we won't miss traling data from the
	previous chunk when a new one is received before the other is fully
	read.

svn path=/trunk/mcs/; revision=23004
2004-02-12 00:50:34 +00:00
Gonzalo Paniagua Javier 9718b1dc86 2004-02-10 Gonzalo Paniagua Javier <[email protected]>
* ChunkStream.cs:
	* WebConnection.cs: fixed bug that caused ChunkStream to return 0 on
	Read if it have not yet received any byte of the body but is expecting
	a body.

svn path=/trunk/mcs/; revision=22944
2004-02-10 14:47:34 +00:00
Nick Drochak eb0654d00a Flush
svn path=/trunk/mcs/; revision=22791
2004-02-05 13:32:42 +00:00
Nick Drochak b9ce91a104 2004-01-27 Nick Drochak <[email protected]>
* DigestClient.cs:
	* HttpWebRequest.cs:
	* IPv6Address.cs:
	* WebClient.cs:
	* WebConnection.cs:
	* WebConnectionStream.cs: Remove unused variables thus eliminating some
	build warnings.

svn path=/trunk/mcs/; revision=22538
2004-01-27 14:28:18 +00:00