Commit Graph
35 Commits
Author SHA1 Message Date
Dick Porter 6b41703ee1 2007-06-21 Dick Porter <[email protected]>
* AuthenticationManager.cs: 
	* FtpWebRequest.cs: 
	* Cookie.cs: 
	* ServicePoint.cs: 
	* WebClient.cs: 
	* Authorization.cs: 
	* FileWebRequest.cs: 
	* HttpWebRequest.cs: 
	* WebResponse.cs: 
	* ServicePointManager.cs: 
	* HttpWebResponse.cs: Throw NotImplementedException indirectly, to
	reduce noise in Moma reports.



svn path=/trunk/mcs/; revision=80484
2007-06-21 15:24:34 +00:00
Dick Porter fa277dafe1 2007-06-19 Dick Porter <[email protected]>
* AuthenticationManager.cs: 
	* IWebProxyScript.cs: 
	* Authorization.cs: 
	* Cookie.cs: 
	* CookieException.cs: 
	* CredentialCache.cs: 
	* FileWebRequest.cs: 
	* WebRequest.cs: 
	* FileWebResponse.cs: 
	* WebResponse.cs: 
	* FtpWebRequest.cs: 
	* HttpWebRequest.cs: 
	* DecompressionMethods.cs: 
	* HttpWebResponse.cs: 
	* ProtocolViolationException.cs: 
	* ServicePoint.cs: 
	* ServicePointManager.cs: 
	* WebClient.cs: 
	* WebException.cs: 
	* WebHeaderCollection.cs: 
	* WebProxy.cs: 
	* WebExceptionStatus.cs: 2.0 profile updates



svn path=/trunk/mcs/; revision=80152
2007-06-19 13:23:16 +00:00
Gonzalo Paniagua Javier 85dc0b4809 2006-11-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: cookies are actually added to the request
	container if any. Fixes bug #79821.


svn path=/trunk/mcs/; revision=67792
2006-11-13 21:19:09 +00:00
Gonzalo Paniagua Javier ffaf18b587 2006-09-15 Gonzalo Paniagua Javier <[email protected]>
* CookieContainer.cs: send the cookies from the collection we got for
	the given URI, not the whole collection.
	* HttpWebResponse.cs: only add the cookies to this instance, not to the
	cookie container set in the request.


svn path=/trunk/mcs/; revision=65493
2006-09-15 21:37:57 +00:00
Gonzalo Paniagua Javier 3cb5b085ee 2006-04-06 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: don't remove the Set-Cookie headers. Fixes bug
	#78028.


svn path=/trunk/mcs/; revision=59133
2006-04-06 18:50:21 +00:00
Chris Toshok e11d804054 In System.Net:
2006-04-03  Chris Toshok  <[email protected]>

	* HttpWebResponse.cs (ContentEncoding): return "" if the header
	isn't present.

In Test/System.Net:
2006-04-03  Chris Toshok  <[email protected]>

	* HttpWebRequestTest.cs (Missing_ContentEncoding): add test to
	handle missing content encoding header.


svn path=/trunk/mcs/; revision=58978
2006-04-03 21:33:43 +00:00
Gonzalo Paniagua Javier c117b859ee 2006-01-10 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: ignore non-integer values for max-age and version.
	Fixes bug #77199. Thanks to Cyrille Colin.


svn path=/trunk/mcs/; revision=55355
2006-01-10 23:22:00 +00:00
Gonzalo Paniagua Javier 374ef7101d 2006-01-10 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: cope with malformed cookies with '=' as value.
	Patch by Cyrille Colin. Fixes bug #77179.


svn path=/trunk/mcs/; revision=55307
2006-01-10 16:44:50 +00:00
Gonzalo Paniagua Javier c06238ff52 2005-12-08 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: don't loop forever when no name or value between
	semicolons. Fixes bug #76943.


svn path=/trunk/mcs/; revision=54118
2005-12-08 18:17:48 +00:00
Gonzalo Paniagua Javier 59d07a3df0 2005-12-06 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: don't fail if the cookie ends with a 'name'
	without a value. Fixes bug #76922.


svn path=/trunk/mcs/; revision=54007
2005-12-06 20:56:03 +00:00
Gonzalo Paniagua Javier 835abe7513 2005-11-17 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerPrefixCollection.cs:
	* HttpWebResponse.cs:
	* Dns.cs:
	* HttpListenerRequest.cs:
	* HttpWebRequest.cs:
	* HttpListenerResponse.cs: a few signature fixes for 2.0.


svn path=/trunk/mcs/; revision=53210
2005-11-17 22:07:17 +00:00
Gonzalo Paniagua Javier b5ce71c485 2005-03-30 Gonzalo Paniagua Javier <[email protected]>
* CookieContainer.cs: adding to a CookieCollection might not increment
	the number of items if the cookie is replaced. Now Count works properly.
	Fixed an array index exception (typo).

	* CookieCollection.cs: also compare the version.

	* HttpWebResponse.cs: when we have cookies, add them to the request
	container.

	* HttpWebRequest.cs: changed last parameter of HttpWebResponse ctor.


svn path=/trunk/mcs/; revision=42411
2005-03-31 02:32:49 +00:00
Miguel de Icaza d6408549e5 2005-03-29 Miguel de Icaza <[email protected]>
* HttpWebResponse.cs: Handle quotations in the cookies values, per
	the spec http://www.faqs.org/rfcs/rfc2109.html, it is allowed to
	have quotations.


svn path=/trunk/mcs/; revision=42362
2005-03-30 02:08:07 +00:00
Gonzalo Paniagua Javier 4f2bab519c 2005-03-10 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: moved cookie parsing into its own class.
	* WebHeaderCollection.cs: remove (probably bogus) GetMultipleValues
	call.
	* HttpWebRequest.cs: don't let exception raised in the ctor of
	HttpWebResponse vanish.

	Fixes bug #73275.


svn path=/trunk/mcs/; revision=41670
2005-03-10 23:29:30 +00:00
Gonzalo Paniagua Javier 5a767ce9e3 2005-02-12 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs:
	* WebConnection.cs:
	* HttpWebRequest.cs:
	* WebConnectionStream.cs: don't read the entire response unless the
	user requests it. Fixes bug #72443.


svn path=/trunk/mcs/; revision=40559
2005-02-12 21:54:47 +00:00
Gonzalo Paniagua Javier 6a0c4b7736 2004-12-12 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: added ReadAll method.

	* WebConnection.cs: in HandleError, set the response error after
	closing the socket. Use an async. delegate to finish reading any prior
	WebConnectionStream.

	* HttpWebRequest.cs: for error responses that allow content, read the
	stream immediately. Fixes bug #70483.


svn path=/trunk/mcs/; revision=37664
2004-12-12 20:43:09 +00:00
Gonzalo Paniagua Javier 9312f1b1e9 2004-11-01 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: don't lock up when the cookie received ends with
	a semicolon. Patch by Darryl VanDorp. Fixes bug #68956.

svn path=/trunk/mcs/; revision=35530
2004-11-01 19:55:45 +00:00
Gonzalo Paniagua Javier f4c1dfb1e7 2004-09-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: remove unused SplitValue method.

svn path=/trunk/mcs/; revision=33817
2004-09-13 17:53:56 +00:00
Gonzalo Paniagua Javier 5f80f81cd4 2004-08-11 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: set-cookie and set-cookie2 can be present more
	than once and have multiple values. Don't rely on string.split when
	parsing cookie values.

	* WebHeaderCollection.cs: same thing for set-cookie and set-cookie2.
	Fixed GetValues (it was splitting values that contained a comma) and
	changed SetInternal to handle multi-value headers.

	Fixes bug #62744.

svn path=/trunk/mcs/; revision=32235
2004-08-11 20:03:15 +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 4df757a617 2003-10-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs:
	* HttpWebResponse.cs: better abort handling and leave the stream in a
	stable status on abort.

svn path=/trunk/mcs/; revision=18943
2003-10-13 00:19:54 +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 1b462e1ef9 2003-06-26 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: close the socket and connection when disposing.
	* WebRequest.cs: removed setter for RequestUri. Allow non-public ctors
	when creating instances.

	* HttpWebRequest.cs:
	* HttpWebResponse.cs:
	* FileWebRequest.cs: support serialization.

	* FileWebResponse.cs: support serialization and fixed dispose checks.

	* FileWebRequestCreator.cs:
	* HttpRequestCreator.cs: added internal .ctor.

svn path=/trunk/mcs/; revision=15644
2003-06-26 02:03:38 +00:00
Gonzalo Paniagua Javier 5f56352dc6 2003-06-14 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: if CookieContainer has not been set, make HttpWebResponse ignore
	Set-Cookie* headers.

	* HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if CookieContainer have
	been provided to the request.

svn path=/trunk/mcs/; revision=15379
2003-06-14 13:22:53 +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
Miguel de Icaza 6419036c57 2003-04-24 Miguel de Icaza <[email protected]>
* WebClient.cs (DownloadData): Instead of using a MemoryStream,
	keep track of all the small chunks in an ArrayList.  The
	MemoryStream had the property of reallocating itself, and the
	problem was that MemoryStream.GetBuffer would return the buffer
	(correctly), but not something of the right size.  So clients of
	DownloadData would get the extra unused bytes as part of the
	result.

	The solution would have been to make another copy at this point,
	instead, we only keep the small allocations around in the
	ArrayList, and we only do one large allocation at the end.

	* HttpWebResponse.cs: If there is a Content-Length header, pass
	this information to our HttpWebResponseStream, so it knows when to
	stop, instead of waiting for the stream to be shut down by the
	other end.

	* HttpWebRequest.cs: Only set the `delay-header-writing' mode on
	the underlying stream if the method will do a content transfer and
	no Content-Length was provided. If not (HEAD and GET or
	Content-Length provided), keep going.

svn path=/trunk/mcs/; revision=13986
2003-04-24 22:50:29 +00:00
Gonzalo Paniagua Javier dd020c9afa removed writeline
svn path=/trunk/mcs/; revision=13716
2003-04-17 14:42:34 +00:00
Gonzalo Paniagua Javier 943d0451fa 2003-04-12 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: fixes bug #41180.

svn path=/trunk/mcs/; revision=13532
2003-04-12 01:17:38 +00:00
Gonzalo Paniagua Javier 70b2f8cb22 2003-03-07 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: implemented IDisposable, make the request stream
	read only. Changed the way of disposing the socket.

	* HttpWebResponse.cs: wrapped the socket in a write-only NetworkStream,
	handle chunked transfer encoding (no more hangs), added serialization
	stuff, call CheckDisposed at the beginning of methods/properties (not
	in a finally clause).

svn path=/trunk/mcs/; revision=12283
2003-03-07 04:21:25 +00:00
Gonzalo Paniagua Javier 41681b5c8d 2002-09-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs:
	* HttpWebResponse.cs: applied another patch from Shahms E. King
	([email protected]).

svn path=/trunk/mcs/; revision=7346
2002-09-09 23:15:01 +00:00
Gonzalo Paniagua Javier c7a35e4544 2002-09-03 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs:
	* HttpWebResponse.cs: applied patch from Shahms E. King
	([email protected]).

svn path=/trunk/mcs/; revision=7225
2002-09-04 01:42:23 +00:00
Lawrence Pit ff8a89dcca * MonoHttpDate.cs: added
* HttpWebRequest.cs: using MonoHttpDate
	* HttpWebResponse.cs: using MonoHttpDate
	* DnsPermission.cs: correct XML output
	* SocketPermission.cs: correct XML output

svn path=/trunk/mcs/; revision=4990
2002-05-28 18:36:53 +00:00
Lawrence Pit afc721a8ae * WebProxy.cs: added, implemented
* ServicePoint.cs: implemented most
	* ServicePointManager.cs: implemented
	* HttpWebRequest.cs: started implementation
	* HttpWebResponse.cs: improved disposable routines
	* FileWebRequest.cs: slight improvement of Close method

svn path=/trunk/mcs/; revision=4793
2002-05-20 18:40:55 +00:00
Lawrence Pit 9660a4c88b * Dns.cs: Reimplemented (simplified and fixed) asynchronous methods by
relying on standard asynchronous delegate features. Added checks for
	null strings.
	* HttpWebResponse.cs: implemented properties
	* FileWebResponse.cs: improved the way resources are disposed.
	* FileWebRequest.cs: started implementation of asynchronous methods
	* ServicePointManager.cs: implemented properties

svn path=/trunk/mcs/; revision=4604
2002-05-13 19:59:05 +00:00
Lawrence Pit a0fa972a36 * HttpWebRequest.cs: properties implemented
* HttpWebResponse.cs: added
	* GlobalProxySelection.cs: implemented

svn path=/trunk/mcs/; revision=4553
2002-05-12 09:09:10 +00:00