Commit Graph
16 Commits
Author SHA1 Message Date
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +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
Pedro Martínez Juliá 4b9bf9ec29 2003-10-17 Pedro Mart�nez Juli� <[email protected]>
* WebClient.cs: use Path.DirectorySeparator instead of "/" for
    windows compatibility. Add some checks for file paths like
    "C:/xxx/yyy/..." and like "/home/xxx/...".

svn path=/trunk/mcs/; revision=19127
2003-10-17 11:14:15 +00:00
Pedro Martínez Juliá 463bed0b0b 2003-10-16 Pedro Mart�nez Juli� <[email protected]>
* WebClient.cs: added a slash between directory and file names.

svn path=/trunk/mcs/; revision=19098
2003-10-16 00:59:32 +00:00
Pedro Martínez Juliá ee2617c815 2003-10-12 Pedro Mart�nez Juli� <[email protected]>
* WebClient.cs: refine reading of local files (like MS.NET).

svn path=/trunk/mcs/; revision=18912
2003-10-12 15:54:36 +00:00
Pedro Martínez Juliá 3797b802e3 2003-10-10 Pedro Mart�nez Juli� <[email protected]>
* Uri.cs: fixed a problem with some URIs like file://some_file.txt
    It used to return "/some_file.txt/" instead of "some_file.txt" in
    LocalPath. Fix handling of full path files and SMB addresses.

    * UriTest.cs: added some test for "file://one_file.txt". Uri used to
    fail with this URIs.

    * WebClient.cs: MS.NET works right when we try OpenRead("file.txt")
    but we didn't. Now, when Uri fails with an exception, it adds
    "file://" before the URI and tries again.

svn path=/trunk/mcs/; revision=18870
2003-10-10 23:38:41 +00:00
Gonzalo Paniagua Javier 8823e1fd4e 2003-07-01 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: fixed bug #45651.

svn path=/trunk/mcs/; revision=15800
2003-07-01 00:16:05 +00:00
Gonzalo Paniagua Javier d526bd6474 2003-06-29 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: Small fix by Sebastian <[email protected]>.

svn path=/trunk/mcs/; revision=15727
2003-06-29 18:26:52 +00:00
Gonzalo Paniagua Javier 435ec337a7 2003-06-11 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: implemented UploadFile. Fixed SetupRequest to set the
	special headers *after* the others.

svn path=/trunk/mcs/; revision=15325
2003-06-11 20:48:43 +00:00
Gonzalo Paniagua Javier f8dbb61730 This compiled ok with mcs. Preparing bugreport.
svn path=/trunk/mcs/; revision=15181
2003-06-08 13:53:02 +00:00
Gonzalo Paniagua Javier ddf5ef623a 2003-06-08 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
	is known not to respond to that.

	* ServicePoint.cs: added SendContinue property.

	* WebConnection.cs: only wait 2 seconds for a continue reply. If it
	timeouts, set SendContinue to false and proceeed sending data.

	* WebConnectionStream.cs: if 100-continue is not received and instead we
	get a 417 or anything else, don't send the data.

	* WebClient.cs: implemented all missing properties and methods except
	UploadFile.

svn path=/trunk/mcs/; revision=15180
2003-06-08 13:47:28 +00:00
Miguel de Icaza 7ab0c9dff7 2003-04-29 Miguel de Icaza <[email protected]>
* WebClient.cs (DownloadData): Close the underlyng stream.
	(DownloadFile): Use using, so the file gets closed.

svn path=/trunk/mcs/; revision=14128
2003-04-30 01:05:47 +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
Nick Drochak 91bb988c97 2003-02-17 Nick Drochak <[email protected]>
* WebClient.cs : Implemented Credentials property.

svn path=/trunk/mcs/; revision=11634
2003-02-17 09:14:19 +00:00
Atsushi Eno ccc7255252 2003-01-29 Atsushi Enomoto <[email protected]>
* WebClient.cs : hacked OpenRead, DownloadData and DownloadFile.

svn path=/trunk/mcs/; revision=10990
2003-01-28 16:33:04 +00:00
Lawrence Pit 11fdd62665 * WebClient.cs: stubbed
* WebProxy.cs: fixed bug

	* WebProxyTest.cs: added more ctor tests

svn path=/trunk/mcs/; revision=4806
2002-05-21 03:07:21 +00:00