2003-11-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System / System.Net / ChangeLog
index 02a29d610a43c3927a3714e31ceea942f9b6d280..6b0fccfb870bf3bb1d648d2d72782176e17c9b12 100644 (file)
@@ -1,3 +1,405 @@
+2003-11-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * IPAddress.cs: prevent exceptions when trying to parse the static IPv6
+       addresses.
+
+2003-10-17  Pedro Martínez Juliá  <yoros@wanadoo.es>
+
+       * WebClient.cs: use Path.DirectorySeparator instead of "/" for
+       windows compatibility. Add some checks for file paths like
+       "C:/xxx/yyy/..." and like "/home/xxx/...".
+
+2003-10-16  Pedro Martínez Juliá  <yoros@wanadoo.es>
+
+       * WebClient.cs: added a slash between directory and file names.
+
+2003-10-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs:
+       * HttpWebResponse.cs: better abort handling and leave the stream in a
+       stable status on abort.
+
+2003-10-12  Pedro Martínez Juliá  <yoros@wanadoo.es>
+
+       * WebClient.cs: refine reading of local files (like MS.NET).
+
+2003-10-10  Pedro Martínez Juliá  <yoros@wanadoo.es>
+
+       * 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.
+
+2003-10-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ServicePoint.cs: preparing for recycling. Not yet finished.
+       * ServicePointManager.cs: this is the one that reads config.
+       * WebConnectionGroup.cs: don't read config here.
+       * WebConnection.cs: added the queue again. Launch queued requests on
+       error.
+
+2003-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * WebConnection.cs: the queue is now handled by the threadpool.
+       Initialize the connection data in a place where it does not depend on
+       the execution order of the requests in threadpool. More error handling.
+
+       * WebConnectionGroup.cs: use the limits in the config file and reuse
+       connections when the limit is reached.
+
+2003-10-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs: handle 304 à la MS.
+       * WebConnection.cs: set the response data when reading 0 bytes.
+
+2003-09-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * WebConnectionStream.cs: fix by Lluis to avoid the stream being in an
+       invalid state.
+
+2003-08-14  Nick Drochak <ndrochak@gol.com>
+
+       * WebRequest.cs: Check lower case string since that is what we will add.
+
+2003-08-04  Jerome Laban <jlaban@wanadoo.fr>
+
+       * IPHostEntry.cs: Default contructor must not initialize members.
+       (Fixes bug #45575).
+
+2003-07-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * CredentialCache.cs: Removed undefined serializable attribute
+
+2003-07-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ChunkStream.cs:
+       (WantMore): true if we've not received the last chunk yet. Fixes
+       bug #45463. Thanks to Miguel for tracking this down and providing a
+       test case.
+       
+       * WebConnection.cs: removed bogus ^M's.
+       
+       * WebHeaderCollection.cs: provide more info when the header or value is
+       wrong.
+
+2003-07-15  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * ChunkStream.cs: Removed unused members
+       * IPAddress.cs: Removed unused exception variable, fixes compiler
+       warning.
+       * WebConnection.cs: Removed unused exception variables, fixes compiler
+       warnings.
+
+2003-07-14  Lluis Sanchez Gual <lluis@ximian.com>
+
+       * NetConfig.cs: If Clone method is not public, then it must use
+         explicit interface method implementation syntax.
+
+2003-07-14  Jerome Laban <jlaban@wanadoo.fr>
+
+       * Dns.cs: Reworked indentation.
+       Added IPv6 support.
+       Added literal address checking in GetHostByAddress.
+       Changed Dns.Resolve behavior.
+       * IPAddress.cs:
+       * IPEndPoint.cs: Added IPv6 support.
+       * IPv6Address.cs: Added address compression.
+       * NetConfig.cs: Added configuration section.    
+
+2003-07-14  Jerome Laban <jlaban@wanadoo.fr>
+
+       * ServicePoint.cs: Removed Connect and GetEndPoint methods.
+       Removed reverse resolution when uri is literal IP address. 
+       * WebConnection.cs: IPv6 compatibility update: Try to connect
+       to all addresses returned by IPHostEntry.
+       * WebConnectionGroup.cs: Removed unused parameter. 
+
+2003-07-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * WebProxy.cs: Add serialization/ deserialization support
+
+2003-07-10  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * ProxyUseType.cs:
+       * WebStatus.cs: Deleted (do not exist in this assembly)
+       * IPv6Address.cs: Made internal
+
+2003-07-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs:
+       * ServicePointManager.cs:
+       * WebConnection.cs: added support for proxies.
+
+2003-07-05  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * DnsPermissionAttribute.cs:
+       * SocketPermissionAttribute.cs: Fixed wrong AttributeUsageAttribute
+
+2003-07-05  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * WebPermission.cs: Added and partially implemented
+       * WebPermissionAttribute.cs: Added and implemented
+
+2003-07-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * WebClient.cs: fixed bug #45651.
+
+2003-06-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * WebClient.cs: Small fix by Sebastian <scut@nb.in-berlin.de>.
+
+2003-06-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * WebConnection.cs: fixed header writing the reusing a connection and
+       the server does not send 100-continue response.
+
+2003-06-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * 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.
+
+2003-06-24  Lluis Sanchez Gual <lluis@ximian.com>
+
+       * HttpWebRequest.cs: SetWriteStream(): SendRequestHeaders should be
+       called before asyncWrite.SetCompleted, to make sure that the waiting
+       thread does not start to send more information before
+       SendRequestHeaders has finished.
+
+2003-06-22  Lluis Sanchez Gual <lluis@ximian.com>
+
+       * WebConnectionStream.cs: Only increment pendingReads if an asynchronous
+       read is really needed.
+
+2003-06-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * WebHeaderCollection.cs: prevent duplication headers used niternally.
+
+2003-06-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * 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.
+
+2003-06-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AuthenticationManager.cs: get the list of authentication modules from
+       the configuration files. Added Clear and fixed Unregister.
+
+       * BasicClient.cs: fully implemented.
+
+       * HttpWebRequest.cs: added support for Basic authentication when
+       credentials are set.
+
+       * NetworkCredential.cs: fixed GetCredential.
+
+2003-06-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs: *really* take care of requestSent to prevent
+       sending the same request twice.
+       * WebAsyncResult.cs: don't close the handle. Just Reset.
+       * WebConnectionStream.cs: removed unneeded line.
+
+2003-06-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs: use InternalClose when we are not going to send the
+       rest of the request stream because of an error after sending the
+       headers.
+
+       * WebConnection.cs: check for completion after setting the response.
+       Enable reading in NextRead.
+
+       * WebConnectionStream.cs: re-fixed the count for partially buffered
+       reads. If the network stream returns 0 bytes, we're done.
+
+2003-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * WebClient.cs: implemented UploadFile. Fixed SetupRequest to set the
+       special headers *after* the others.
+
+2003-06-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * WebConnectionStream.cs: when the read is partially filled from the
+       initial buffer, add those bytes too. Thanks to Lluis for debugging this.
+
+2003-06-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs: added ExpectContinue property.
+       * WebConnection.cs: allow 100 Continue to be delayed after waiting for
+       it.
+
+2003-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * 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.
+
+2003-06-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FileWebRequestCreator.cs: splitted from WebRequest.
+       * HttpRequestCreator.cs: splitted fromWebRequest.
+       * WebRequest.cs: added methods that are used by the new configuration
+       handler to set prefix/type name requests creators.
+
+2003-06-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AuthenticationManager.cs:
+       * Authorization.cs:
+       * BasicClient.cs: new file.
+       * ChunkStream.cs: new file.
+       * Cookie.cs:
+       * CookieContainer.cs:
+       * GlobalProxySelection.cs:
+       * HttpWebRequest.cs:
+       * HttpWebResponse.cs:
+       * IAuthenticationModule.cs:
+       * ServicePoint.cs:
+       * ServicePointManager.cs:
+       * WebAsyncResult.cs: new file.
+       * WebConnection.cs: new file.
+       * WebConnectionData.cs: new file.
+       * WebConnectionGroup.cs: new file.
+       * WebConnectionStream.cs: new file.
+       * WebException.cs:
+       * WebHeaderCollection.cs:
+       * WebProxy.cs:
+       * WebResponse.cs:
+
+       Reworked HttpWebRequest and related classes.
+
+2003-05-30  Miguel de Icaza  <miguel@ximian.com>
+
+       * HttpWebRequest.cs (EndGetResponse): Do not throw exceptions on
+       InternalServerError (500)
+
+2003-05-29  Miguel de Icaza  <miguel@ximian.com>
+
+       * HttpWebRequest.cs (Close): Move the code that accumulates the
+       output to Close from Flush.  Flush could have been called in the
+       middle of the processing, and would have generated invalid results
+       (which it did).
+
+2003-05-23  Zoltan Varga  <vargaz@freemail.hu>
+
+       * Dns.cs (GetHostByAddress): Return the local host when called with
+       IF_ANY.
+
+2003-04-29  Miguel de Icaza  <miguel@ximian.com>
+
+       * WebClient.cs (DownloadData): Close the underlyng stream.
+       (DownloadFile): Use using, so the file gets closed.
+
+2003-04-24  Miguel de Icaza  <miguel@ximian.com>
+
+       * 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.
+       
+2003-04-23  Miguel de Icaza  <miguel@ximian.com>
+
+       * HttpWebRequest.cs: .NET Allows the HttpWebRequest to not have
+       the ContentLength specified on the request.  If that happens, we
+       have to accumulate all the data written, and once we accumulate
+       the data, we send it off.  
+
+       Notice that the documentation in .NET is actually incorrect, they
+       state that setting ContentLength is mandatory.  It is not.
+
+2003-04-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebResponse.cs: fixes bug #41180.
+
+2003-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs: throw an exception is the response code is >= 300.
+
+2003-03-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * 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).
+
+2003-02-17  Nick Drochak <ndrochak@gol.com>
+
+       * WebClient.cs : Implemented Credentials property.
+
+2003-02-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * SocketAddress.cs: byte 1 of the data is the high byte of the family,
+       not the size.
+
+2003-01-29  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
+
+       * WebClient.cs : hacked OpenRead, DownloadData and DownloadFile.
+
+2002-10-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs: applied patch from Tim Haynes
+       (thaynes@openlinksw.com).
+
+       Avoided double-sending of the request to the server when both
+       GetRequestStream() and GetResponse() are called.
+       System Header attributes survive the Headers attribute set.
+       Added handling of Connection: KeepAlive/Close
+
+2002-10-03  Dick Porter  <dick@ximian.com>
+
+       * Dns.cs: Fixed GetHostName()
+
+2002-09-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs:
+       * HttpWebResponse.cs: applied another patch from Shahms E. King
+       (shahms@shahms.com).
+
+2002-09-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs:
+       * HttpWebResponse.cs: applied patch from Shahms E. King
+       (shahms@shahms.com).
+
 2002-05-29  Lawrence Pit <loz@cable.a2000.nl>
 
        * MonoHttpDate.cs: added