Commit Graph
574 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 3a3cce358a 2009-03-03 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: don't allocate the IPv6 array for IPv4 addresses.


svn path=/trunk/mcs/; revision=128515
2009-03-04 03:15:52 +00:00
Gonzalo Paniagua Javier 7aeb0747ee 2009-02-23 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: append the QueryString in DownloadData.
	Fixes bug #323788.


svn path=/trunk/mcs/; revision=127699
2009-02-23 05:10:10 +00:00
Gonzalo Paniagua Javier f65e2cc9cc 2009-02-21 Gonzalo Paniagua Javier <[email protected]>
* FtpWebResponse.cs: return a Null stream when there's no response to
	be read.
	* FtpWebRequest.cs: provide the error returned by the server in the
	exception.
	* WebClient.cs: set the correct method when doing a FTP upload.
	Fixes bug #478451.


svn path=/trunk/mcs/; revision=127640
2009-02-21 23:30:00 +00:00
Gonzalo Paniagua Javier c0bc4cf75d 2009-02-19 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: avoid errors when creating a temporary Uri to get
	the local path.
	* WebClient.cs: when setting up the request for downloading, use the
	default method. Fixes bug #477611.


svn path=/trunk/mcs/; revision=127449
2009-02-19 20:13:58 +00:00
Atsushi Eno f5d1dc6c2c 2009-02-16 Atsushi Enomoto <[email protected]>
* WebConnectionStream.cs : use request only after it is set.


svn path=/trunk/mcs/; revision=126994
2009-02-16 05:45:36 +00:00
Gonzalo Paniagua Javier 17efcb2270 2009-02-13 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: implemente (Read|Write)Timeout.
	Fixes bug #348159.


svn path=/trunk/mcs/; revision=126842
2009-02-13 15:09:07 +00:00
Gonzalo Paniagua Javier a01b5f3fa1 2009-02-10 Gonzalo Paniagua Javier <[email protected]>
* CookieContainer.cs: separate cookies with "; " instead of just ';'.
	Fixes bug #386727.


svn path=/trunk/mcs/; revision=126530
2009-02-10 23:35:11 +00:00
Gonzalo Paniagua Javier 4771a3f360 2009-02-08 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: lock SetResponseError.


svn path=/trunk/mcs/; revision=126292
2009-02-08 23:11:03 +00:00
Gert Driesen 7cbe766dac * DnsTest.cs: Use Assert syntax, and spaces to tabs. Added tests
for argument checks.
* Dns.cs: BeginGetHostAddresses - renamed argument to match MS,
reject "any" IP addresses. BeginGetHostEntry - renamed argument
to match MS, reject "any" IP addresses. GetHostEntry - reject
"any" IP addresses. GetHostAddresses - reject "any" IP addresses.
GetHostByName - use "hostName" as paramname in ANE.

svn path=/trunk/mcs/; revision=126281
2009-02-08 19:43:44 +00:00
Gonzalo Paniagua Javier 74b093ad4b 2009-02-07 Gonzalo Paniagua Javier <[email protected]>
* Dns.cs: empty string for host (also 0.0.0.0) is just passed to the
	runtime, which will then retrieve the local IP addresses. Fixes bug
	#386637 part 2/2.


svn path=/trunk/mcs/; revision=126162
2009-02-07 05:22:30 +00:00
Gonzalo Paniagua Javier 6f5b93b2d2 2009-02-06 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: some servers have a comment after the directory
	name. Fixes bugs #471149 and #471216.


svn path=/trunk/mcs/; revision=126101
2009-02-06 20:18:50 +00:00
Gonzalo Paniagua Javier b528a9481f 2009-02-06 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: set the content length to 0 when the
	response is not supposed to have any content.


svn path=/trunk/mcs/; revision=126090
2009-02-06 19:33:19 +00:00
Miguel de Icaza b36f2aa0dd 2009-02-05 Miguel de Icaza <[email protected]>
* WebConnectionStream.cs: Prevent a nullref here.   This might
	have to be backported to 2.2 and 2.4

svn path=/trunk/mcs/; revision=125823
2009-02-05 06:10:57 +00:00
Gonzalo Paniagua Javier 42bcc2f506 2009-02-03 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs:
	* HttpWebRequest.cs: calling Abort is safe now if the request has been
	read entirely.


svn path=/trunk/mcs/; revision=125633
2009-02-04 01:50:09 +00:00
Gonzalo Paniagua Javier 28da946864 2009-02-03 Gonzalo Paniagua Javier <[email protected]>
* WebProxy.cs: use TryParse when checking for a localhost IP.


svn path=/trunk/mcs/; revision=125499
2009-02-03 10:08:38 +00:00
Gonzalo Paniagua Javier 912095a65c ChangeLog
svn path=/trunk/mcs/; revision=124459
2009-01-26 06:47:17 +00:00
Gonzalo Paniagua Javier 0b70322ff1 2009-01-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: avoid throwing an exception when
	Content-Length is not present.

svn path=/trunk/mcs/; revision=124458
2009-01-26 06:44:21 +00:00
Gonzalo Paniagua Javier 0a087b4e24 2009-01-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: added locking in SetResponseData for the case
	when we get an error response before BeginGetResponse has been
	called.


svn path=/trunk/mcs/; revision=124452
2009-01-26 05:02:47 +00:00
Gonzalo Paniagua Javier 975f926771 2009-01-20 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: handle sign extension for the high byte when using the
	byte[] ctor for an IPv4 address.
	Fixes bug #467472.


svn path=/trunk/mcs/; revision=123856
2009-01-20 06:31:18 +00:00
Marek Habersack 5e95e86db1 2009-01-19 Marek Habersack <[email protected]>
* HttpWebRequest.cs: implemented the UseDefaultCredentials
	property, patch from Florian Maetschke <[email protected]>,
	thanks!

svn path=/trunk/mcs/; revision=123792
2009-01-19 13:22:39 +00:00
Gonzalo Paniagua Javier 12ad10aa49 2009-01-16 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: adjust to the correct directory when listing too.
	Fixes bug #466530.


svn path=/trunk/mcs/; revision=123614
2009-01-16 15:38:56 +00:00
Gonzalo Paniagua Javier 3f8bc3c7ef 2009-01-15 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerRequest.cs: always initialize 'version'.
	* HttpConnection.cs: the socket might already be disconnected when
	shutting down.


svn path=/trunk/mcs/; revision=123453
2009-01-15 06:03:51 +00:00
Gonzalo Paniagua Javier f1c1d40b44 2009-01-14 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: if the buffer has been killed, return -1 for
	its length. Fixes regression in System.Runtime.Remoting.


svn path=/trunk/mcs/; revision=123449
2009-01-15 04:56:16 +00:00
Gonzalo Paniagua Javier c95dfe4d99 2009-01-14 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: create a result from the response when
	*GetResponse() has not been called yet and we have already received
	all the data.
	Fixes bug #464013.


svn path=/trunk/mcs/; revision=123313
2009-01-14 05:47:13 +00:00
Gonzalo Paniagua Javier 4f7efa726b 2009-01-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: keepAlive is of no use here.
	Fixes bug #465613.


svn path=/trunk/mcs/; revision=123252
2009-01-13 20:51:11 +00:00
Gonzalo Paniagua Javier 538c44650f 2009-01-13 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: we were not writing the headers for 0-length
	responses.
	* WebConnectionStream.cs: for 204/304 responses with an explicit
	content-length of 0, release the socket only once.
	Fixes bug #465638.


svn path=/trunk/mcs/; revision=123250
2009-01-13 20:32:26 +00:00
Gonzalo Paniagua Javier 93a5d755a7 2009-01-12 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: now deleting a file works when we're not in the
	root directory.


svn path=/trunk/mcs/; revision=123135
2009-01-12 22:02:18 +00:00
Gonzalo Paniagua Javier e674886d4f Use IndexOf (char)
svn path=/trunk/mcs/; revision=122120
2008-12-25 07:43:17 +00:00
Gonzalo Paniagua Javier 67646a07f7 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122119
2008-12-25 07:41:04 +00:00
Gonzalo Paniagua Javier e9347b2c23 2008-12-20 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: avoid throwing when parsing a subnet.


svn path=/trunk/mcs/; revision=121921
2008-12-20 09:37:22 +00:00
Gonzalo Paniagua Javier 370451c2fe 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: remove CWL. When reusing, BeginReadRequest might
	throw if the client closes.
	* HttpListenerResponse.cs: close the connection for 1.0 clients.


svn path=/trunk/mcs/; revision=119225
2008-11-18 21:50:44 +00:00
Gonzalo Paniagua Javier 9e7ecafa95 2008-11-13 Gonzalo Paniagua Javier <[email protected]>
* FtpDataStream.cs: use the socket for reading until the end of a
	stream that wasn't read entirely. Remove unused ManualResetEvent.
	* FtpWebRequest.cs: set the file_name when downloading. Update the
	response status after every SendCommand. Send a "OPTS utf8 on" as MS
	does (the control cnc reader should do something with UTF8)


svn path=/trunk/mcs/; revision=118783
2008-11-13 22:55:54 +00:00
Gonzalo Paniagua Javier 0e9ed5c489 2008-11-04 Gonzalo Paniagua Javier <[email protected]>
* WebRequest.cs: if the cache level is NoCacheNoStore, don't throw
	when setting the CachePolicy.


svn path=/trunk/mcs/; revision=117945
2008-11-04 22:08:51 +00:00
Gonzalo Paniagua Javier 986dd1844a 2008-11-03 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: take the server current directory into account
	when uploading files. Set the data connection type before every
	transmission.
	Bug 333985 fixed.


svn path=/trunk/mcs/; revision=117841
2008-11-04 03:08:10 +00:00
Gonzalo Paniagua Javier 0ddcf6a74d 2008-10-31 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: disable keep-alive connections as the current code 
	does not deal with keep-alive connections.
	Workaround for bug #380262.


svn path=/trunk/mcs/; revision=117608
2008-11-01 04:01:27 +00:00
Gonzalo Paniagua Javier 34e930f822 2008-10-30 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: when there's a NTLM authentication in
	progress, don't let the connection be used by the next request if we
	have the entire response in the input buffer.


svn path=/trunk/mcs/; revision=117511
2008-10-30 19:17:53 +00:00
Gonzalo Paniagua Javier 96793af85e 2008-10-30 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerResponse.cs: removed obsolete comment.
	* ResponseStream.cs: don't read response.SendChunked until after
	getting the response headers.


svn path=/trunk/mcs/; revision=117492
2008-10-30 17:35:24 +00:00
Gonzalo Paniagua Javier 2cc04012e9 2008-10-27 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: set the default limit of connections from
	the configuration file(s) on startup.
	Bug #339422 fixed.


svn path=/trunk/mcs/; revision=117126
2008-10-27 04:58:02 +00: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 61bbe5b41b 2008-10-08 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs:
	* ServicePoint.cs:
	* WebConnectionGroup.cs:
	* HttpWebRequest.cs:
	* WebConnectionStream.cs: reuse the same connection when doing NTLM
	authentication. Fixes bug #323375.
	Implemented support for UnsafeAuthenticatedConnectionSharing.


svn path=/trunk/mcs/; revision=115265
2008-10-08 20:16:33 +00:00
Gonzalo Paniagua Javier f374f900d4 2008-10-08 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs:
	* HttpListenerResponse.cs: fix typo that caused the "connection close"
	header to be sent. Do not close the socket when the encoding is not
	chunked and reuse is possible.
	Fixes bug #433371.


svn path=/trunk/mcs/; revision=115250
2008-10-08 17:52:29 +00:00
Gonzalo Paniagua Javier c058b49aef 2008-10-08 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: if GetRequestStream has already been called,
	return the same stream that we returned in the first call.
	Fixes bug #429200.


svn path=/trunk/mcs/; revision=115225
2008-10-08 15:25:53 +00:00
Gonzalo Paniagua Javier b9b4f42c35 2008-10-07 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: better handling of possible collisions of the
	hash for schema/host/port. Fixes bug #417891.


svn path=/trunk/mcs/; revision=115096
2008-10-07 15:40:04 +00:00
Gonzalo Paniagua Javier 6b5d46c6d7 2008-10-06 Gonzalo Paniagua Javier <[email protected]>
* ChunkStream.cs: (ReadTrailer) make sure the array access is not out
	of bounds. Fixes bug #322715.


svn path=/trunk/mcs/; revision=115003
2008-10-06 20:35:46 +00:00
Gonzalo Paniagua Javier b67928068d 2008-09-19 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: when receiving a 0 content-length, free up
	the slot for the next request immediately.
	Fixes bug #427974.


svn path=/trunk/mcs/; revision=113610
2008-09-20 01:53:59 +00:00
Miguel de Icaza 34e8a45dd4 Remove TODO, kill warning
svn path=/trunk/mcs/; revision=113371
2008-09-18 00:34:34 +00:00
Marek Habersack 8efdf7adb0 Fix the build
svn path=/trunk/mcs/; revision=113126
2008-09-16 06:20:33 +00:00
Miguel de Icaza 8a52a782c9 2008-09-16 Miguel de Icaza <[email protected]>
* IPv6Address.cs: On the 2.0 profile, avoid throwing/catching
	exceptions inside TryParse.


svn path=/trunk/mcs/; revision=113125
2008-09-16 05:30:40 +00:00
Miguel de Icaza d97ed80f3b 2008-09-12 Miguel de Icaza <[email protected]>
* HttpListenerPrefixCollection.cs, EndPointListener.cs,
	HttpListener.cs, EndPointManager.cs, HttpConnection.cs: Remove
	generics support where necessary to allow this code to be reused
	in the 1.0 profile.

svn path=/trunk/mcs/; revision=112922
2008-09-12 23:59:52 +00:00
Miguel de Icaza 50946b99fd Fixes: #341443
2008-09-08  Miguel de Icaza  <[email protected]>

	* EndPointListener.cs (SearchListener): Cope with the raw_url not
	being merely a path, but potentially a full URI (see the proxy
	case). 

	* HttpListenerRequest.cs: Cope with raw_url not being merely a
	path, but potentially a full Uri.   Also uses TryCreate, hoping
	that one day it will be faster.

2008-09-08  Miguel de Icaza  <[email protected]>

	* Uri.cs (MaybeUri): A helper routine for methods in other classes
	to quickly determine if something might be a Uri, before calling
	the more expensive Uri.TryCreate (see bug 424192).


svn path=/trunk/mcs/; revision=112551
2008-09-08 21:59:21 +00:00