* 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
* 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
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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* ServicePointManager.cs: set the default limit of connections from
the configuration file(s) on startup.
Bug #339422 fixed.
svn path=/trunk/mcs/; revision=117126
* 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
* 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
* 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
* ServicePointManager.cs: better handling of possible collisions of the
hash for schema/host/port. Fixes bug #417891.
svn path=/trunk/mcs/; revision=115096
* 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
* 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-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
* WebConnectionStream.cs (WriteRequest): For small requests,
cluster together the header + body in a single write call, avoids
the latency problems observed in an TLS application that makes
many web service calls.
2008-08-22 Geoff Norton <[email protected]>
* WebConnection.cs: Set NoDelay
svn path=/trunk/mcs/; revision=111430
* Uri.cs: Use exception-less operations.
2008-08-06 Miguel de Icaza <[email protected]>
* IPAddress.cs (ParseIPV6): Use an exception-less parser for ipv6
addresses.
* IPv6Address.cs: Rewrite most of the parsing code to not use that
incredibly fragile, hacky and hacky implementation.
(TryParse): Provide a exception-less parsing path.
svn path=/trunk/mcs/; revision=109802
* IPAddress.cs : several IPv4 parsing fix exposed by bug #411920.
* IPAddressTest.cs : added test strings for bug #411920 as well as
enabling some ipv4ParseOK strings.
svn path=/trunk/mcs/; revision=109737