1 2010-03-19 Sebastien Pouliot <sebastien@ximian.com>
3 * AuthenticationManager.cs: Internal type for Moonlight.
4 Add BasicClient, DigestClient, NtlmClient for NET_2_1 since
5 this applies to both monotouch and moonlight (client stack).
6 Removed unneeded NET_2_0 defines
7 * CookieContainer.cs: For Moonlight it needs to be internal in
8 System.dll and public in System.Net.dll. Removed unneeded NET_2_0
10 * HttpContinueDelegate.cs: Internal type for Moonlight.
11 * HttpRequestCreator.cs: Remove a MOONLIGHT define
12 * HttpStatusCode.cs: For Moonlight it needs to be internal in
13 System.dll and public in System.Net.dll
14 * HttpWebRequest.cs: Internal type for Moonlight. Change S.Config
15 to NET_2_1 defines (applies to both monotouch and moonlight).
16 Removed unneeded NET_2_0 and NET_1_1 defines
17 * HttpWebResponse.cs: Internal type for Moonlight. Removed
18 unneeded NET_2_0 defines
19 * IAuthenticationModule.cs: Internal type for Moonlight.
20 * ICertificatePolicy.cs: Internal type for Moonlight.
21 * ICredentialPolicy.cs: Internal type for Moonlight. Removed
22 unneeded NET_2_0 defines
23 * IWebRequestCreate.cs: For Moonlight it needs to be internal in
24 System.dll and public in System.Net.dll
25 * ServicePoint.cs: Internal type for Moonlight. Change S.Config
26 to NET_2_1 defines (applies to both monotouch and moonlight)
27 * ServicePointManager.cs: Remove a MOONLIGHT define
28 * WebException.cs: For Moonlight it needs to be internal in
29 System.dll and public in System.Net.dll. Removed unneeded NET_2_0
31 * WebHeaderCollection.cs: Internal type for Moonlight. Removed
32 unneeded NET_2_0 defines
33 * WebRequest.cs: Internal type for Moonlight. Change S.Config
34 to NET_2_1 defines (applies to both monotouch and moonlight)
35 * WebResponse.cs: Internal type for Moonlight. Removed unneeded
38 2010-03-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
41 * FtpWebRequest.cs: for non-data operations, make sure we send the
42 QUIT command upon completion when KeepAlive is false.
45 2010-03-16 Jb Evain <jbevain@novell.com>
47 * Dns.cs, HttpRequestCreator.cs, ServicePoint.cs: use MOONLIGHT
48 symbol to disambiguate MonoTouch and Moonlight code.
50 2010-03-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
52 * ServicePointManager.cs: perform the entire chain validation here.
54 2010-03-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
56 * HttpConnection.cs: set the right position when a CR is found.
59 2010-03-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
62 * HttpListenerRequest.cs:
63 * ListenerAsyncResult.cs:
64 * HttpConnection.cs: make sure there is no pending input when reusing
67 2010-03-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
69 * HttpListenerContext.cs: split the auth header in 2 parts.
70 * HttpListener.cs: backported SelectAuthenticationScheme and
71 added new InternalEndGetContext used for connections that require
73 * ListenerAsyncResult.cs: allow this object to be just a forwarder
74 when nesting connections for authentication purposes.
77 2010-03-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
79 * WebClient.cs: fix for UploadStringAsync(). Closes bug #577818.
82 2010-03-04 Atsushi Enomoto <atsushi@ximian.com>
84 * HttpListenerContext.cs : WWW-Authenticate header should not be
87 2010-03-04 Atsushi Enomoto <atsushi@ximian.com>
89 * HttpListenerContext.cs : The header line here is already trimmed
90 "Authorization:" , so do not try to remove it.
92 2010-03-04 Atsushi Enomoto <atsushi@ximian.com>
94 * HttpListener.cs, ListenerAsyncResult.cs : fix authentication
95 scheme selection mismatch.
97 2010-03-03 Atsushi Enomoto <atsushi@ximian.com>
99 * HttpListenerContext.cs, HttpListener.cs :
100 support AuthenticationSchemeSelectorDelegate.
102 2010-03-01 Miguel de Icaza <miguel@novell.com>
104 * WebHeaderCollection.cs: Apply 2 year old patch from Yves Bastide
105 that fixes the keys casing in the collection; Fixes 325491
107 2010-03-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
109 * WebConnection.cs: attach a validation callback to the new
110 event in Mono.Security.
111 * ServicePointManager.cs: added a new ValidationHelper
112 class that takes care of building the certificate chain and perform
113 all the check that were done in Mono.Security before. This way the 2.0
114 server certificate validation callback can get all the data it needs.
118 2010-01-29 Mike Kestner <mkestner@novell.com>
120 * HttpUtility.cs: port more of the methods from System.Web file.
121 * WebUtility.cs: new 4.0 class.
123 2010-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
125 * IPEndPoint.cs: When throwing an ArgumentException in Create()
126 because of a mismatch in the address family, use a more informative
127 message. Patch by Juho Vaha-Herttu<juhovh@iki.fi>.
130 2010-01-21 Sebastien Pouliot <sebastien@ximian.com>
132 * CookieContainer.cs: Fix to cloning and expiration. Patch
133 by Tom Philpot <tom.philpot@logos.com>
135 2010-01-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
137 * HttpWebRequest.cs: when the server returns several different
138 authentication methods, pick the one that works.
141 2010-01-12 Sebastien Pouliot <sebastien@ximian.com>
143 * NetworkCredential.cs: Fix properties to never return null.
145 2009-12-24 Sebastien Pouliot <sebastien@ximian.com>
147 * Cookie.cs: Re-work ToString to be useable in more cases. Fix
148 some issues found by Gendarme.
149 * CookieContainer.cs: Fix all NonWorking (and new) unit tests.
150 Implement removing oldest cookies when limits are reached.
151 * CookieCollection.cs: Move to generics internally. Fix sort to
152 be closer to MS implementation (but still not 100% identical).
153 Fix some issues found by Gendarme.
155 2009-12-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
157 * WebConnectionGroup.cs:
158 * ServicePoint.cs: implemented CloseConnectionGroup().
160 2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
162 * System.Net/DnsEndPoint.cs: Moved from System.Net (where the
163 type resides in Moonlight) so it's available for 4.0
165 2009-11-30 Sebastien Pouliot <sebastien@ximian.com>
167 * CookieCollection.cs: Seal inner CookieCollectionPathComparer
168 * IPAddress.cs: Avoid multiple casts in Equals
169 * SocketAddress.cs: Avoid multiple casts in Equals
170 [Found using Gendarme]
172 2009-10-23 Alexandre Gomes <alexmipego@gmail.com>
174 * WebClient.cs: Fixed GetWebRequest overriding problems, bug:
175 https://bugzilla.novell.com/show_bug.cgi?id=549580
177 2009-10-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
179 * WebConnectionStream.cs: add 3 missing DoCallback() calls in
182 2009-09-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
184 * EndPointListener.cs: fix matching a listener in presence of a query
187 2009-09-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
189 * HttpListenerRequest.cs: add the right status code.
190 * HttpConnection.cs: exception might come from more places when
191 reading the input. Catch all of them.
193 2009-09-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
195 * WebRequest.cs: handle upper and lowercase HTTP_PROXY and the Any
196 address. Fixes bug #537283.
198 2009-09-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
200 * WebConnection.cs: if the request has already finished reading, don't
201 throw ObjectDisposedException here, just return as if nothing
202 happened. Fixes bug #312968.
204 2009-08-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
206 * WebConnection.cs: HEAD response does not have a body even if the
207 response is an error. Fixes buf #535102.
209 2009-08-17 Geoff Norton <gnorton@novell.com>
211 * NtlmClient.cs: Mono.Http does not exist on monotouch
213 2009-08-17 Sebastien Pouliot <sebastien@ximian.com>
215 * CookieCollection.cs: Seal class for NET_2_1 (SL3)
216 * CookieContainer.cs: Seal class for NET_2_1 (SL3)
217 * NetworkCredential.cs: Use in NET_2_1 (SL3) but without implementing
220 2009-08-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
223 * WebConnectionStream.cs: if there's an error writing the headers from
224 a buffered request, propagate the error instead of hiding it and
225 causing a different one later (ie, ObjectDisposedException instead of
226 the original WebException). This happened when posting without
227 Content-Length set to an HTTPS url without validating the server
230 2009-07-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
232 * WebClient.cs: rethrow WebExceptions instead of creating a new one
233 with less information on the actual error.
236 2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
238 * WebHeaderCollection.cs: check the validity of the characters in the
241 2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
243 * WebHeaderCollection.cs: implemente the 2.0 IsRestricted().
245 2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
247 * WebConnectionStream.cs: when sending a 0-length POST, ignore further
248 writes instead of throwing.
251 2009-07-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
253 * WebClient.cs: implement GetWebRequest and GetWebResponse. Use them
254 instead of SetupRequest and ProcessResponse.
256 2009-07-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
258 * WebClient.cs: set the content length when uploading values. This
259 allows reusing the connection.
260 * WebConnectionStream.cs: SetHeaders() takes ownership of the buffer
261 and does not need to copy it any more. WriteRequest() wasn't always
262 setting 'requestWritten' to true.
263 * HttpWebRequest.cs: change in SetHeaders call.
265 2009-07-06 Gert Driesen <drieseng@users.sourceforge.net>
267 * WebConnectionStream.cs: Move and improve argument checks to match MS.
268 Modified CanRead and CanWrite to return false when instance is disposed.
270 2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
272 * WebConnection.cs: provide better error message when there's an error
274 * WebConnectionStream.cs: don't nullify the buffer until
275 CheckFinalStatus() decides that there are no more authentication
276 retries or redirects.
278 2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
280 * ServicePointManager.cs: implement ServerCertificateValidationCallback.
281 * DefaultCertificatePolicy.cs: if there's a SCVC registered, don't do
282 normal error checking.a
284 2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
286 * HttpWebRequest.cs: avoid duplicating Accept-Encoding if GetHeaders()
288 * WebConnectionStream.cs: don't send a 0 content length for non-write
291 2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
293 * WebConnection.cs: must use the 'int' version in 1.1.
295 2009-07-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
298 * ServicePoint.cs: UseNagleAlgorithm determines NoDelay value.
300 2009-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
302 * HttpWebRequest.cs: fix 1.1 only test.
304 2009-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
306 * WebConnectionStream.cs: when buffering the response, we have to set
307 the internal length and regenerate the headers.
309 2009-06-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
311 * HttpWebRequest.cs: don't send Content-Length header when SendChunked
313 * WebConnectionStream.cs: send the headers immediately when possible.
314 When writing the request before a Close(), if there was an exception
317 2009-06-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
320 * HttpListenerResponse.cs: force closing the socket when the response
323 2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
325 * WebAsyncResult.cs: new field that tells us if the request is being
326 written automatically because we reached the content length.
328 * WebConnectionStream.cs: make sure we only access the NetworkStream
329 while we own it. Automatically write the request when we reach
330 ContentLength number of bytes. Kill the write buffer as soon as
331 possible. Don't use the buffer at all when chunked encoding is
334 Fixes bugs #515931 and #510642.
336 2009-06-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
338 * WebConnection.cs: 'socket' and 'Data' where being changed by 2
339 threads at the same time when there were queued requests and the
340 current one was aborted in Connect().
341 * HttpWebRequest.cs: 'aborted' is now an int and we use Interlocked to
342 access it. Added WebConnection field used when aborting the request.
344 Fixes bug #514591 for good.
346 2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
348 * HttpWebRequest.cs: check for an aborted request in Begin* before
349 proceeding. Fixes bug #511851.
351 2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
353 * WebConnectionStream.cs: close the underlying socket if there's an
354 exception when closing the stream. Fixes bug #514996.
356 2009-06-20 Gert Driesen <drieseng@users.sourceforge.net>
358 * WebConnectionStream.cs: Keep count of all bytes written, and perform
359 write overflow check in both buffered and non-buffered writing (if
360 not using chunked transfer encoding). Fixes bug #510642.
362 2009-06-20 Gert Driesen <drieseng@users.sourceforge.net>
364 * WebClient.cs: Use lowercase hex bytes to match MS. Avoid using
365 zero-length string literal. Fixed exception argument name to match
367 * WebConnectionStream.cs: Throw a WebException that wraps an
368 IOException when closing the stream before all bytes are written.
370 2009-06-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
372 * WebConnection.cs: make sure we don't open a new socket if the
373 request is aborted before we establish the connection. Fixes bug
376 * HttpWebRequest.cs: new property to return abort status. Invoke the
377 abort handler before doing anything else when Abort() is called for
380 2009-06-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
382 * EndPointListener.cs: call CheckIfRemove() after removing a regular
383 prefix. Fixes bug #513849.
384 * EndPointManager.cs: make sure we use the right lock when one prefix
385 of a collection fails to be added and we need to remove all of the
387 Clear the ip_to_endpoints hashtable if there are no more prefixes
388 listening on that address.
390 2009-06-16 Andres G. Aragoneses <aaragoneses@novell.com>
392 * WebConnection.cs: propagate the exception to the request.
393 * WebException.cs: new internal ctor.
394 * HttpWebRequest.cs: use new ctor to encapsulate the innerException.
397 2009-06-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
399 * HttpWebRequest.cs: for unknown methods, always send the request once
400 we are connected even if there's no writeStream. Fixes bug #513087.
402 2009-06-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
404 * HttpWebRequest.cs: ProtocolViolationException is not thrown in
405 certain cases since 2.0. Fixes bug #508027.
407 2009-06-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
409 * HttpWebRequest.cs: follow MS docs when throwing
410 ProtocolViolationException at the beginning of an asynchronous
411 operation. Fixes bug #465613.
413 2009-06-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
415 * WebConnectionStream.cs: throw a WebException instead of an IOException.
417 2009-06-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
419 * FtpWebRequest.cs: avoid exception when the reply from the server
420 contains just response code. Fixes bug #510852.
422 2009-06-05 Sebastien Pouliot <sebastien@ximian.com>
424 * DownloadStringCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
425 * OpenReadCompletedEventArgs.cs: Remove Address property since it's
426 not part of SL2. Call RaiseExceptionIfNecessary
427 * OpenWriteCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
428 * UploadStringCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
430 2009-06-05 Robert Jordan <robertj@gmx.net>
432 * WebClient.cs (UploadValuesCore): Encode POST arguments with UTF-8.
435 2009-06-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
437 * HttpWebRequest.cs: KeepAlive check not needed.
440 2009-06-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
442 * HttpConnection.cs: unbind the context after every read for keep-alive
446 2009-05-17 Gert Driesen <drieseng@users.sourceforge.net>
448 * CookieContainer.cs: Provide meaningful information in exception
449 messages, and improve compatibility with MS. Modified set_Capacity to
450 no longer change MaxCookieSize when new value is less than
453 2009-05-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
455 * HttpWebResponse.cs:
456 * HttpWebRequest.cs: support automatic decompression of the response.
460 2009-05-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
462 * Dns.cs: made GetHostAddresses and friends internal for 1.x
463 * EndpointPermission.cs: use GetHostAddresses.
465 2009-05-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
467 * CookieContainer.cs: matching hosts to domain names like MS does.
470 2009-05-02 Atsushi Enomoto <atsushi@ximian.com>
472 * CredentialCache.cs : implement all not-implemented methods.
473 Patch by Mineda Nozomi. Close bug #499556.
475 2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
477 * EndPoint.cs: Throw NotImplementedException instead of
478 NotSupportedException
479 * IPEndPoint.cs: Fix some validations.
481 2009-04-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
484 * HttpWebRequest.cs: provide more information on why the connection
485 could not be established.
487 2009-04-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
489 * FtpWebRequest.cs: send REST after PASV to avoid some servers
490 forgetting aboout it.
493 2009-03-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
495 * FtpWebRequest.cs: we were sending CWD instead of PWD.
498 2009-03-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
500 * IPAddress.cs: don't allocate the IPv6 array for IPv4 addresses.
502 2009-02-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
504 * WebClient.cs: append the QueryString in DownloadData.
507 2009-02-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
509 * FtpWebResponse.cs: return a Null stream when there's no response to
511 * FtpWebRequest.cs: provide the error returned by the server in the
513 * WebClient.cs: set the correct method when doing a FTP upload.
516 2009-02-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
518 * FtpWebRequest.cs: avoid errors when creating a temporary Uri to get
520 * WebClient.cs: when setting up the request for downloading, use the
521 default method. Fixes bug #477611.
523 2009-02-16 Atsushi Enomoto <atsushi@ximian.com>
525 * WebConnectionStream.cs : use request only after it is set.
527 2009-02-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
529 * WebConnectionStream.cs: implemente (Read|Write)Timeout.
532 2009-02-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
534 * CookieContainer.cs: separate cookies with "; " instead of just ';'.
537 2009-02-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
539 * HttpWebRequest.cs: lock SetResponseError.
541 2009-02-08 Gert Driesen <drieseng@users.sourceforge.net>
543 * Dns.cs: BeginGetHostAddresses - renamed argument to match MS,
544 reject "any" IP addresses. BeginGetHostEntry - renamed argument
545 to match MS, reject "any" IP addresses. GetHostEntry - reject
546 "any" IP addresses. GetHostAddresses - reject "any" IP addresses.
547 GetHostByName - use "hostName" as paramname in ANE.
549 2009-02-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
551 * Dns.cs: empty string for host (also 0.0.0.0) is just passed to the
552 runtime, which will then retrieve the local IP addresses. Fixes bug
555 2009-02-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
557 * FtpWebRequest.cs: some servers have a comment after the directory
558 name. Fixes bugs #471149 and #471216.
560 2009-02-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
562 * WebConnectionStream.cs: set the content length to 0 when the
563 response is not supposed to have any content.
565 2009-02-05 Miguel de Icaza <miguel@novell.com>
567 * WebConnectionStream.cs: Prevent a nullref here. This might
568 have to be backported to 2.2 and 2.4
570 2009-02-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
573 * HttpWebRequest.cs: calling Abort is safe now if the request has been
576 2009-02-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
578 * WebProxy.cs: use TryParse when checking for a localhost IP.
580 2009-01-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
582 * HttpWebResponse.cs: avoid throwing an exception when
583 Content-Length is not present.
585 2009-01-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
587 * HttpWebRequest.cs: added locking in SetResponseData for the case
588 when we get an error response before BeginGetResponse has been
591 2009-01-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
593 * IPAddress.cs: handle sign extension for the high byte when using the
594 byte[] ctor for an IPv4 address.
597 2009-01-19 Marek Habersack <mhabersack@novell.com>
599 * HttpWebRequest.cs: implemented the UseDefaultCredentials
600 property, patch from Florian Maetschke <f.maetschke@tu-bs.de>,
603 2009-01-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
605 * FtpWebRequest.cs: adjust to the correct directory when listing too.
608 2009-01-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
610 * HttpListenerRequest.cs: always initialize 'version'.
611 * HttpConnection.cs: the socket might already be disconnected when
614 2009-01-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
616 * WebConnectionStream.cs: if the buffer has been killed, return -1 for
617 its length. Fixes regression in System.Runtime.Remoting.
619 2009-01-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
621 * HttpWebRequest.cs: create a result from the response when
622 *GetResponse() has not been called yet and we have already received
626 2009-01-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
628 * HttpWebRequest.cs: keepAlive is of no use here.
631 2009-01-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
633 * HttpConnection.cs: we were not writing the headers for 0-length
635 * WebConnectionStream.cs: for 204/304 responses with an explicit
636 content-length of 0, release the socket only once.
639 2009-01-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
641 * FtpWebRequest.cs: now deleting a file works when we're not in the
644 2008-12-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
646 * IPAddress.cs: avoid throwing when parsing a subnet.
648 2008-11-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
650 * HttpConnection.cs: remove CWL. When reusing, BeginReadRequest might
651 throw if the client closes.
652 * HttpListenerResponse.cs: close the connection for 1.0 clients.
654 2008-11-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
656 * FtpDataStream.cs: use the socket for reading until the end of a
657 stream that wasn't read entirely. Remove unused ManualResetEvent.
658 * FtpWebRequest.cs: set the file_name when downloading. Update the
659 response status after every SendCommand. Send a "OPTS utf8 on" as MS
660 does (the control cnc reader should do something with UTF8)
662 2008-11-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
664 * WebRequest.cs: if the cache level is NoCacheNoStore, don't throw
665 when setting the CachePolicy.
667 2008-11-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
669 * FtpWebRequest.cs: take the server current directory into account
670 when uploading files. Set the data connection type before every
674 2008-10-31 Gonzalo Paniagua Javier <gonzalo@novell.com>
676 * FtpWebRequest.cs: disable keep-alive connections as the current code
677 does not deal with keep-alive connections.
678 Workaround for bug #380262.
680 2008-10-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
682 * WebConnectionStream.cs: when there's a NTLM authentication in
683 progress, don't let the connection be used by the next request if we
684 have the entire response in the input buffer.
686 2008-10-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
688 * HttpListenerResponse.cs: removed obsolete comment.
689 * ResponseStream.cs: don't read response.SendChunked until after
690 getting the response headers.
692 2008-10-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
694 * ServicePointManager.cs: set the default limit of connections from
695 the configuration file(s) on startup.
698 2008-10-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
700 * HttpWebRequest.cs: don't call ProxyRequest twice.
701 * WebConnectionData.cs: remove unused fields.
704 * WebConnectionStream.cs: when setting the input buffer, check to see
705 if the entire response is already there and free up the request slot.
709 * HttpListenerResponse.cs: buffer the headers so that they are sent
710 together with the data on the first Write (if any). The fix above
711 didn't work with our HttpListener without this.
713 2008-10-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
717 * WebConnectionGroup.cs:
719 * WebConnectionStream.cs: reuse the same connection when doing NTLM
720 authentication. Fixes bug #323375.
721 Implemented support for UnsafeAuthenticatedConnectionSharing.
723 2008-10-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
726 * HttpListenerResponse.cs: fix typo that caused the "connection close"
727 header to be sent. Do not close the socket when the encoding is not
728 chunked and reuse is possible.
731 2008-10-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
733 * HttpWebRequest.cs: if GetRequestStream has already been called,
734 return the same stream that we returned in the first call.
737 2008-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
739 * ServicePointManager.cs: better handling of possible collisions of the
740 hash for schema/host/port. Fixes bug #417891.
742 2008-10-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
744 * ChunkStream.cs: (ReadTrailer) make sure the array access is not out
745 of bounds. Fixes bug #322715.
747 2008-09-19 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
749 * WebConnectionStream.cs: when receiving a 0 content-length, free up
750 the slot for the next request immediately.
753 2008-09-16 Miguel de Icaza <miguel@novell.com>
755 * IPv6Address.cs: On the 2.0 profile, avoid throwing/catching
756 exceptions inside TryParse.
758 2008-09-12 Miguel de Icaza <miguel@novell.com>
760 * HttpListenerPrefixCollection.cs, EndPointListener.cs,
761 HttpListener.cs, EndPointManager.cs, HttpConnection.cs: Remove
762 generics support where necessary to allow this code to be reused
765 2008-09-08 Miguel de Icaza <miguel@novell.com>
767 * EndPointListener.cs (SearchListener): Cope with the raw_url not
768 being merely a path, but potentially a full URI (see the proxy
771 * HttpListenerRequest.cs: Cope with raw_url not being merely a
772 path, but potentially a full Uri. Also uses TryCreate, hoping
773 that one day it will be faster.
775 2008-08-23 Zoltan Varga <vargaz@gmail.com>
777 * WebConnectionStream.cs (WriteRequest): Fix the copying in the
778 previous patch, when bytes.Length != length.
780 2008-08-22 Zoltan Varga <vargaz@gmail.com>
782 * WebConnectionStream.cs (WriteRequest): For small requests,
783 cluster together the header + body in a single write call, avoids
784 the latency problems observed in an TLS application that makes
785 many web service calls.
787 2008-08-22 Geoff Norton <gnorton@novell.com>
789 * WebConnection.cs: Set NoDelay
791 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
793 * OpenReadCompletedEventArgs.cs: new Address property for 2.1
795 2008-08-06 Miguel de Icaza <miguel@novell.com>
797 * IPAddress.cs (ParseIPV6): Use an exception-less parser for ipv6
800 * IPv6Address.cs: Rewrite most of the parsing code to not use that
801 incredibly fragile, hacky and hacky implementation.
803 (TryParse): Provide a exception-less parsing path.
805 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>μ
807 2008-08-06 Atsushi Enomoto <atsushi@ximian.com>
809 * IPAddress.cs : several IPv4 parsing fix exposed by bug #411920.
811 2008-08-05 Atsushi Enomoto <atsushi@ximian.com>
813 * WebClient.cs : it should not invoke delegate directly, but should
814 call overridable OnDownloadProgressChanged.
816 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>μ
818 * HttpWebResponse.cs: Initialize contentLength in ctor, as it must
819 remain accessible after the response is disposed (and the headers are
820 no longer available). Adding missing disposed checks in properties
821 (except for StatusCode) and GetResponseHeader. On the 2.0 profile,
822 headers must remain accessible after the HttpWebResponse is disposed.
824 2008-06-10 Stephane Delcroix <sdelcroix@novell.com>
826 * IPAddress.cs: allow usage on 2.1 as smcs knows nothing about
827 string.GetEnumerator : IEnumerable<char>
829 2008-06-08 Miguel de Icaza <miguel@novell.com>
831 * ResponseStream.cs: Do not Close the HttpResponse object here as
832 it is possible to issue multiple OutputStream.Close calls (they
833 actually happen implicitly through things like StreamWriter.Close,
834 and they are in various MSDN samples).
836 2008-05-28 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
838 * CookieContainer.cs: apply slightly modified patch from rulatir@wp.pl
839 that fixes bug #356537.
841 2008-04-30 Miguel de Icaza <miguel@novell.com>
843 * WebPermission.cs (ToXml): To allow code that uses WebPermission
846 2008-04-21 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
848 * HttpWebResponse.cs: do not check the disposed status for properties
849 and methods that return response data other than the stream itself.
852 2008-04-16 Marek Habersack <mhabersack@novell.com>
854 * HttpWebRequest.cs: fix an off-by-one bug - the number of
855 redirects must not exceed the value of
856 MaximumAutomaticRedirections. Fixes bug #380131
858 2008-04-13 Jb Evain <jbevain@novell.com>
860 * *_2_1.cs: move the specific 2.1 System.Net code to the
863 2008-04-13 Jb Evain <jbevain@novell.com>
865 * WebRequest_2_1.cs, WebResponse_2_1.cs: new files
866 * HttpWebRequest_2_1.cs, HttpWebResponse_2_1, WebHeaderCollection_2_1:
867 update to Silverlight 2.0b1 API.
868 Merged from the Moonlight 2 branch.
870 2008-04-06 <gnorton@novell.com>
872 * ListenerAsyncContext.cs: Fix Basic authentication support. Patch from
873 Maciej Paszta <paszczi@go2.pl>
875 2008-02-21 Zoltan Varga <vargaz@gmail.com>
877 * HttpConnection.cs (Close): Close the socket even if Shutdown throws an exception.
879 2008-02-17 Daniel Nauck <dna@mono-project.de>
881 * HttpWebResponse.cs: refactored cookie expires parsing to
882 allow all common expires datetime formats.
884 2008-02-09 Daniel Nauck <dna@mono-project.de>
886 * HttpWebResponse.cs: convert UTC/GMT Expires DateTime from a cookie
887 into local time, also set the HttpOnly property if available.
889 2008-02-09 Daniel Nauck <dna@mono-project.de>
891 * Cookie.cs: implemented HttpOnly
893 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
895 * IPAddress.cs (Parse): Changed argument name to match MS.
896 (TryParse): Changed argument name to match MS.
897 (ParseIPV4): Only treat zero-length or " " address as empty on 1.0
898 profile. On 2.0 profile, only ignore characters after blank if last
899 part is valid hex string.
900 * IPv6Address.cs: Removed extra spaces and tabs.
902 2008-01-26 Daniel Nauck <dna@mono-project.de>
904 * HttpWebRequest.cs: fixed typo. Use the actual uri for correct
905 cookie header informations and not the originally one.
907 2008-01-26 Daniel Nauck <dna@mono-project.de>
909 * Cookie.cs: set Version to '1' if Port is set,
910 don't include path and domain informations when version is 0,
911 match ToString () output with .NET 2.0,
914 2008-01-15 Atsushi Enomoto <atsushi@ximian.com>
916 * MonoHttpDate.cs : Parse() should return Local time. Fixed bug
919 2008-01-12 Gert Driesen <drieseng@users.sourceforge.net>
921 * WebClient.cs: Do not add trailing CRLF in UploadValuesCore. Fixes
922 standalone test for bug #351049.
924 2008-01-07 Sebastien Pouliot <sebastien@ximian.com>
926 * CredentialCache.cs: Gendarme's AvoidToStringOnStringsRule in
927 CredentialCacheKey constructor. UseStringEmptyRule on CredentialCache
928 static ctor (3 times).
930 2007-12-27 Miguel de Icaza <miguel@novell.com>
932 * WebClient.cs: We catch exceptions that happen on the helper
933 async threads toa void terminating the application on errors, and
934 also raise a variant of the OnXXXXCompleted methods that take an
937 Note that this differs from the .NET implementation in that
938 we actually raise a signal on error, and set the exception, and in
939 their case no error is ever raised.
941 We now call CompleteAsync in the OnXXXCompleted handlers to ensure
942 that the WebClient can be reused immediately by the callback.
946 This also should fix the bug report on IRC where someone
947 complained that they could not "chain" invocations to XXXAsync
948 methods from the OnXXXXCompleted handlers due to the WebClient
949 refusing to work if there was an ongoing operation
951 2007-12-24 Miguel de Icaza <miguel@novell.com>
953 * WebClient.cs: Do not validate method to be null, we do not do
954 that in OpenWrite, the detection is done later on.
958 2007-12-16 Miguel de Icaza <miguel@novell.com>
960 * WebClient.cs: Got the arguments in the wrong order, fix
962 2007-12-12 Marek Habersack <mhabersack@novell.com>
964 * WebClient.cs: DownloadProgressChanged is available only in the
967 2007-12-12 Miguel de Icaza <miguel@novell.com>
969 * WebClient.cs (DownloadFileCore): use longs for the
970 ContentLength, although the other code (loading into a byte array,
971 or a string) still uses ints, the DownloadFileCore should not.
973 2007-12-11 Miguel de Icaza <miguel@novell.com>
977 Lots of fixes to get the *Async methods to work.
979 * WebClient.cs: async, new boolean flag, used to track whether we
980 are an async invocation, and if so, we need to invoke some
983 Switch to using System.Threading.Thread instead of the ThreadPool
984 as there is no way with the ThreadPool to abort threads (to
985 implemente CancelAsync).
987 (CompleteAsync): Helper method used to clear the state after an
988 async operation completes, otherwise the WebClient can only be
991 (CancelAsync): Use Thread.Interrupt to signal the thread that we
992 are aborting it (it is a lot milder than Thread.Abort, and we are
993 in no rush to cancel this anyways); Also the documentation states
994 that we need to call the WebRequest.Abort method, so we do that in
995 every Download instance.
997 (DownloadDataAsync, DownloadFileAsync, DownloadStringAsync,
998 OpenReadAsync, OpenWriteAsync, UplaodDataAsync, UploadFileAsync,
999 UploadStringAsync): Make signature parameters match MS; use
1000 threads instead of threadpool (so we can implement CancelAsync),
1001 catch ThreadAbortException here so we can also raise the proper
1002 DownloadDataCompleteEventArgs.
1004 These routines will also call the WebRequest.Abort when
1005 appropriate when ThreadInterrupted is used.
1007 (ReadAll): Raise DownloadProgressChanged events.
1009 2007-12-03 Gert Driesen <drieseng@users.sourceforge.net>
1011 * WebClient.cs: Modified argument checks to match MS, and wrap
1012 exceptions in a WebException. Fixes bug #343064.
1014 2007-12-03 Miguel de Icaza <miguel@novell.com>
1016 * FtpWebRequest.cs: Applied patch from Jerome Haltom that fixes
1017 multi-line responses (after my fix).
1021 2007-11-16 Marek Habersack <mhabersack@novell.com>
1023 * HttpWebRequest.cs: when folding a request into a GET one, set
1024 content length to 0 and kill the buffers. Fixes bug #327314. Patch
1025 from Geoff Norton <gnorton@novell.com>, thanks!
1027 2007-11-13 Atsushi Enomoto <atsushi@ximian.com>
1029 * WebRequest.cs : added missing ImpersonationLevel (NIE).
1030 * SecurityProtocolType.cs : not [Serializable] in 2.0.
1031 * ServicePoint.cs : no GetHashCode() in 2.0.
1032 * WebRequestMethods.cs : fixed wrong STOU.
1033 * FileWebResponse.cs : no Dispose(true) in 2.0 API.
1035 2007-11-08 Jb Evain <jbevain@novell.com>
1037 * WebHeaderCollection_2_1.cs: add a custom WebHeaderCollection
1038 for the 2.1 profile.
1040 2007-11-07 Geoff Norton <gnorton@novell.com>
1042 * ListenerAsyncResult.cs: Only send the 401 header if our authentication
1043 type is Basic or Negotiate (which we default to basic) because that is
1044 all we support. Set the WWW-Authenticate header when we return a 401
1045 result. Send the correct state object in the async result.
1047 2007-11-06 Geoff Norton <gnorton@novell.com>
1049 * ListenerAsyncResult.cs: If the HttpListener has an authentication
1050 scheme, the user should be presented with a 401 without calling the
1053 2007-11-04 Miguel de Icaza <miguel@novell.com>
1055 * FtpWebRequest.cs (GetResponseStatus): Fix this routine
1056 propertly, refactor, and make it follow Mono coding conventions.
1058 2007-10-30 Jerome Haltom (wasabi@larvalstage.net)
1060 * FtpWebRequest.cs: adds support for ftp multiline results, fixes
1063 2007-10-27 Miguel de Icaza <miguel@novell.com>
1065 * HttpListener.cs: Remove more trigger-happy disposed=true from
1066 the code; We should only dispose when the Dispose method is
1067 actually called. Not before.
1071 * HttpListener.cs (Close): Closing does not mean dispose the
1072 object. This allows Start/Stop/Start to be called as many times
1077 2007-10-15 Gert Driesen <drieseng@users.sourceforge.net>
1079 * FtpWebRequest.cs: Added support for DELETE.
1081 2007-10-15 Gert Driesen <drieseng@users.sourceforge.net>
1083 * WebRequest.cs: Changed serialization ctor to throw NIE on 1.0
1084 profile. Cache default proxy, but still allow it to be explicitly set
1085 to null. Removed commented code.
1087 2007-10-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
1089 * WebRequest.cs: DefaultWebProxy allows a null value. Fixes bug #323668.
1091 2007-09-30 Gert Driesen <drieseng@users.sourceforge.net>
1093 * HttpListenerRequest.cs: Do not store 'method' in upper case, but
1094 instead use case-insensitive comparison.
1096 2007-09-30 Gert Driesen <drieseng@users.sourceforge.net>
1098 * HttpListenerRequest.cs: Removed dead code. USe String.Length to
1099 check for zero-length string. Use instance field for is_chunked, and
1100 also set it for GET/HEAD/DELETE. Fixed HasEntityBody to return true
1101 when Content-Length > 0, or Transfer-Encoding is chunked.
1103 2007-09-28 Marek Habersack <mhabersack@novell.com>
1105 * HttpListenerRequest.cs: make sure 'method' is always stored in
1107 The DELETE method must not error out on missing Content-Length
1108 header (this is the behavior of the MS.NET version of the
1109 class). Fixes bug #323215.
1110 HasEntityBody should return false when method is GET/HEAD,
1111 content_length is less than or equal to zero or the request is
1112 chunked. Fixes bug #325296
1114 2007-08-29 Atsushi Enomoto <atsushi@ximian.com>
1116 * IPAddress.cs, IPv6Address.cs : (ToString) output ScopeId.
1118 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
1120 * HttpWebRequest_2_1.cs, HttpWebResponse_2_1.cs :
1121 added new sources for those classes for 2.1 (in 2.1 they are
1122 almost abstract, while in 2.0 they are concrete).
1123 * HttpRequestCreator.cs, ServicePoint.cs :
1124 #ifdef 2.0 dependencies out.
1126 2007-06-28 Chris Howie <cdhowie@nerdshack.com>
1128 * ServicePoint.cs: Implemented BindIPEndPointDelegate.
1129 * FtpWebRequest.cs: Respect ServicePoint.BindIPEndPointDelegate.
1130 * WebConnection.cs: Respect ServicePoint.BindIPEndPointDelegate.
1132 2007-08-08 Jb Evain <jbevain@novell.com>
1134 * HttpWebRequest.cs: .ctor(Uri) is public in 2.1.
1136 2007-08-03 Jb Evain <jbevain@novell.com>
1138 * Dns.cs: remove async methods for the 2.1 profile.
1140 2007-07-17 Rodrigo Kumpera <rkumpera@novell.com>
1142 * HttpListenerRequest.cs: Support for Cookie decoding.
1143 * HttpListenerResponse.cs: Support for encoding cookies on the response sent to the client
1144 * Cookie.cs: new internal method to encode the Cookie in a proper form to sent to clients
1146 2007-07-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
1148 * WebConnectionStream.cs: implement the CanTimeout for 2.0. Fixes
1151 2007-07-12 Geoff Norton <gnorton@customerdna.com>
1153 * HttpListenerContext.cs:
1154 * HttpListener.cs: Handle HttpListener AuthenticationSchemes
1155 Only Basic authentication is included for now.
1157 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
1159 * NetworkAccess.cs: Only mark as flags enum on 2.0.
1161 2007-06-21 Dick Porter <dick@ximian.com>
1163 * AuthenticationManager.cs:
1169 * FileWebRequest.cs:
1170 * HttpWebRequest.cs:
1172 * ServicePointManager.cs:
1173 * HttpWebResponse.cs: Throw NotImplementedException indirectly, to
1174 reduce noise in Moma reports.
1176 2007-06-20 Atsushi Enomoto <atsushi@ximian.com>
1178 * ServicePointManager.cs : (bootstrap) build fix.
1180 2007-06-19 Dick Porter <dick@ximian.com>
1182 * AuthenticationManager.cs:
1183 * IWebProxyScript.cs:
1186 * CookieException.cs:
1187 * CredentialCache.cs:
1188 * FileWebRequest.cs:
1190 * FileWebResponse.cs:
1193 * HttpWebRequest.cs:
1194 * DecompressionMethods.cs:
1195 * HttpWebResponse.cs:
1196 * ProtocolViolationException.cs:
1198 * ServicePointManager.cs:
1201 * WebHeaderCollection.cs:
1203 * WebExceptionStatus.cs: 2.0 profile updates
1205 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
1207 * WebConnectionStream.cs: On read timeout, throw WebException with
1208 status Timeout instead of IOException.
1210 2007-05-16 Adar Wesley <adarw@mainsoft.com>
1212 * CookieCollection.cs: added missing method strongly typed CopyTo.
1214 * CredentialCache.cs: added missing methods Add, Remove, GetCredential
1216 * HttpWebRequest.jvm.cs: added missing ClientCertificates getter.
1218 * ServicePoint.cs: added missing method CloseConnectionGroup.
1220 * WebClient.cs: added missing methods OnDownloadProgressChanged,
1221 OnUploadProgressChanged, GetWebRequest, GetWebResponse
1223 * WebHeaderCollection.cs: added missing methods IsRestricted, Add,
1226 * WebProxy.cs: added missing method GetObjectData.
1228 2007-05-15 Marek Habersack <mhabersack@novell.com>
1230 * HttpWebRequest.cs: fold all methods into GET for
1231 redirect/moves. Fixes bug #81624
1233 2007-05-07 Miguel de Icaza <miguel@novell.com>
1235 Missing second part of the patch.
1237 * WebHeaderCollection.cs: To be compatible with older versions of
1238 Mono that might have serialized this in a different format, catch
1239 the potential exception, and try the old name.
1241 This should become a practice whenever we fix serialization in the
1246 2007-04-23 Marek Habersack <mhabersack@novell.com>
1248 * EndPointListener.cs: relax prefix matching to succeed in cases
1249 when the prefix ends with / and the request path does not. Fixes
1252 * CookieCollection.cs: added a SortByPath method to sort the
1253 collection on demand.
1255 * Cookie.cs: do not return "/" for Path if it wasn't set
1258 * CookieContainer.cs: set cookie path only if its version is
1259 "Netscape" and is null or empty. Fixes #81420.
1260 Sort the collection by the path relevance before returning from
1261 the GetCookies method. Fixes bug #81421.
1263 2007-04-17 Joel Reed <joelwreed@gmail.com>
1265 * WebHeaderCollection.cs: www-authenticate should be multivalue.
1266 This fixes a bug related to RFC 2608 which says in section
1267 "15.2 Offering a Choice of Authentication Schemes"
1269 An HTTP/1.1 server may return multiple challenges with a 401
1270 (Authenticate) response, and each challenge may use a different
1271 scheme. The order of the challenges returned to the user agent is in
1272 the order that the server would prefer they be chosen. The server
1273 should order its challenges with the "most secure" authentication
1274 scheme first. A user agent should choose as the challenge to be made
1275 to the user the first one that the user agent understands.
1277 Before this change, mono was choosing whatever was sent last,
1278 which was the most insecure authentication option.
1280 2007-04-10 Marek Habersack <mhabersack@novell.com>
1282 * HttpListenerRequest.cs: do not include the query start marker
1283 ('?') in the first variable name stored in the QueryString
1284 collection. There is no HTTP header 'Accept-Types' in the
1285 standard, there's only the 'Accept' header that specifies the
1286 accepted MIME types. Fixes bug #81317
1288 2007-03-25 Alan McGovern <alan.mcgovern@gmail.com>
1290 * IPAddress.cs : Further optimisation for the Swap*** methods.
1292 2007-03-24 Alan McGovern <alan.mcgovern@gmail.com>
1294 * IPAddress.cs : Optimised the SwapInt and SwapLong methods.
1296 2007-03-09 Miguel de Icaza <miguel@novell.com>
1298 * FtpDataStream.cs: Close must be called on the stream before we
1299 attempt to read a status code from the remote server.
1301 Fixes FTP transfers to complete.
1303 2007-03-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
1305 * HttpWebRequest.cs: properly handle OPTIONS, which may or may not
1306 have a request body. Fixes bug #80686.
1308 2007-03-02 Marek Habersack <mhabersack@novell.com>
1310 * WebClient.cs: Overwrite existing files on download, as
1311 documented and as tested on MS.NET. Fixes Bug#81005
1313 2007-02-24 Gert Driesen <drieseng@users.sourceforge.net>
1315 * HttpWebRequest.cs: Allow Proxy to be set to null on 2.0 profile.
1317 2007-02-18 Geoff Norton <gnorton@customerdna.com>
1319 * AuthenticationManager.cs: Register the modules in the 2.0 profile
1320 when we create the ArrayList.
1322 2007-02-01 Gert Driesen <drieseng@users.sourceforge.net>
1324 * WebProxy.cs: In IsBypassed, move address check back to satify unit
1327 2007-01-30 Ilya Kharmatsky <ilyak -at- mainsoft.com>
1329 * Dns.cs : implemented proper exception handling under TARGET_JVM
1330 when trying to resolve not existing host.
1332 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
1334 * IPAddress.cs: Provide more meaningful exception message on 2.0
1337 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
1339 * FileWebRequest.cs: Fixed PreAuthenticate and Proxy properties to
1340 no longer throw NotSupportedException. No longer store ContentLength
1341 in headers. Do not allow null or zero-length method. Allow timeout
1342 to be set to -1 (infine). Only disallow GET, HEAD and CONNECT requests.
1343 Removed workarounds for bug #24943. In (Begin)GetRequest overwrite
1344 file if it already exists. Binary serialization compatibility fixes.
1345 * FileWebResponse.cs: Return application/octet-stream as ContentType.
1347 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
1349 * WebHeaderCollection.cs: Fixed binary serialization compatibility
1352 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
1354 * WebProxy.cs: Lazy init bypassList. Fixes for binary serialization
1355 compatibility. Added stub for UseDefaultCredentials (2.0). On 2.0
1356 profile, throw ArgumentNullException in IsBypassed if host is null.
1358 2007-01-22 Miguel de Icaza <miguel@novell.com>
1360 * HttpWebRequest.cs: Remove unused variable.
1362 * FtpWebRequest.cs: Remove unused variable.
1364 * WebHeaderCollection.cs: Remove a handful of NotImplementedException's
1366 2007-01-11 Miguel de Icaza <miguel@novell.com>
1368 * HttpListenerRequest.cs (SetRequestLine): Add validation for the
1371 Allow any verbs to go through, not only
1372 the white list of verbs.
1376 2007-01-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1378 * RequestStream.cs: initialize the stream in both ctors. Fixes a couple
1381 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
1383 * HttpWebRequest.jvm.cs: Fixed line endings.
1384 * HttpWebResponse.jvm.cs: Same.
1385 * WebException.cs: Same.
1386 * FtpWebRequest.cs: Same.
1387 * VMWHttpProvider.jvm.cs: Same.
1389 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
1391 * DnsPermissionAttribute.cs: Fixed line endings.
1392 * HttpVersion.cs: Same.
1393 * FtpWebResponse.cs: Same.
1394 * HttpContinueDelegate.cs: Same.
1395 * FtpAsyncResult.cs: Same.
1396 * EndpointPermission.cs: Same.
1397 * IPv6Address.cs: Same.
1398 * FtpDataStream.cs: Same.
1399 * SocketPermission.cs: Same.
1400 * FileWebRequest.cs: Same.
1401 * FileWebResponse.cs: Same.
1402 * DnsPermission.cs: Same.
1403 * ProtocolViolationException.cs: Same.
1404 * MonoHttpDate.cs: Same.
1405 * SocketPermissionAttribute.cs: Same.
1406 * CookieException.cs: Same.
1407 * WebResponse.cs: Same.
1408 * DefaultCertificatePolicy.cs: Same.
1410 2006-12-28 Gert Driesen <drieseng@users.sourceforge.net>
1412 * IPAddress.cs: On 1.1, 4-byte addresses are not supported in the
1413 ctor. Added null checks for the address passed in the ctors.
1415 2006-12-28 Miguel de Icaza <miguel@novell.com>
1417 * IPAddress.cs: The condition in 1.1 was broken, it only allowed
1418 16-byte addresses, and never 4-byte addresses (only 2.0 had
1421 Keep a single code path.
1423 Also, remove all the NET_1_1 defines, we realistically only
1424 distinguish between 1.1 and 2.0, we wont likely support 1.0, 1.1
1425 and 2.0, so remove the 1.0 vs 1.1 conditionals.
1429 〓2006-12-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1431 * WebConnectionStream.cs: fix error in my last patch. Thanks to Felipe
1434 2006-12-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1437 * HttpWebRequest.cs:
1438 * WebConnectionStream.cs: detect errors writing headers earlier and
1439 avoid race that showed up with SSL. Fixes bug #80234.
1441 2006-12-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1443 * EndPointListener.cs:
1444 * ListenerPrefix.cs:
1445 * ResponseStream.cs:
1446 * ChunkedInputStream.cs:
1447 * HttpConnection.cs:
1448 * RequestStream.cs: add initial support for HTTPS.
1450 2006-12-18 Atsushi Enomoto <atsushi@ximian.com>
1452 * FtpStatus.cs : The build gets broken when only-2.0 classes/members
1453 are not excluded in 1.x build.
1455 2006-12-18 David Elkind <davide@mainsoft.com>
1457 * FtpAsyncResult.cs : FTP request is now working and covers about 100% of .NET API
1458 * FtpDataStream.cs: FTP request is now working and covers about 100% of .NET API
1459 * FtpWebRequest.cs: FTP request is now working and covers about 100% of .NET API
1460 * FtpWebResponse.cs: FTP request is now working and covers about 100% of .NET API
1461 * FtpStatus.cs: added composite status (includes status code and status description)
1463 2006-12-04 Konstantin Triger <kostat@mainsoft.com>
1465 * WebRequest.cs, WebResponse.cs: TARGET_JVM limitation workaround.
1467 2006-12-04 Konstantin Triger <kostat@mainsoft.com>
1469 * ServicePointManager.cs: correct assignment typo.
1470 * ServicePoint.cs: Remove unneeded locks for getters, add internal setter.
1472 2006-11-27 Miguel de Icaza <miguel@novell.com>
1474 * WebRequest.cs: Instead of throwing NotImplemented exceptions,
1475 call GetMustImplement, that way we do not need the whitelist, and
1476 we save a handful of opcodes.
1478 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1480 * HttpWebRequest.cs: add 2 more methods that are not supposed to have
1481 a body. Fixes bug #80001.
1483 2006-11-15 Andrew Skiba <andrews@mainsoft.com>
1485 * WebHeaderCollection.cs: add stubs for new 2.0 properties.
1487 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1489 * HttpWebResponse.cs: cookies are actually added to the request
1490 container if any. Fixes bug #79821.
1492 2006-11-02 Michael Hutchinson <m.j.hutchinson@gmail.com>
1494 * WebRequest.cs: more closely follow MS behaviour: use system settings
1495 unless told otherwise, and respect app.config.
1497 2006-11-01 Michael Hutchinson <m.j.hutchinson@gmail.com>
1499 * GlobalProxySelection.cs: Obsolete GlobalProxySelection under 2.0
1500 profile, and move code to new property WebRequest.DefaultWebProxy.
1501 * WebRequest.cs: Implement new 2.0 property DefaultWebProxy.
1502 Add support for config option UseSystemDefault using simplistic
1503 implementation of new 2.0 method GetSystemWebProxy ().
1505 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
1507 * FtpWebRequest.cs : more build fixes.
1509 2006-10-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1511 * EndPointListener.cs: update comment and avoid exception when the
1514 2006-10-30 Miguel de Icaza <miguel@novell.com>
1516 * WebRequestMethods.cs: Another typo fix.
1518 * ServicePointManager.cs: Set the default properly.
1520 * SecurityProtocolType.cs: Remove non-existant defines.
1522 2006-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1524 * HttpWebRequest.cs: internally allow buffer if it's not a known
1525 GET-only method instead of enabling that only for POST/PUT. Fixes bug
1528 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
1530 * WebConnection.cs: TARGET_JVM
1532 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1534 * WebException.cs: patch by Andrew Skiba that fixes serialization
1535 compatibility with .NET and the default value for status.
1537 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
1539 * Dns.cs: TARGET_JVM
1541 2006-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1543 * CookieContainer.cs: send the cookies from the collection we got for
1544 the given URI, not the whole collection.
1545 * HttpWebResponse.cs: only add the cookies to this instance, not to the
1546 cookie container set in the request.
1548 2006-09-11 Sebastien Pouliot <sebastien@ximian.com>
1550 * WebConnection.cs: Patch to remove the hack that was required for
1551 using the older versions of the SSL/TLS classes. This hack is no more
1552 required :-). Patch by Gonzalo Paniagua Javier.
1554 2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1556 * HttpConnection.cs: when the content length is available, keep it
1557 updated after synchronous read. Renamed 'available' to 'remaining_body'.
1558 * RequestStream.cs: when creating the stream, pass the remaining length
1559 starting from the offset in the buffer.
1561 2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1563 * RequestStream.cs: make sure we return 0 when no more bytes left.
1564 Paticularly, when we have a content length and the whole response is
1567 2006-08-20 Miguel de Icaza <miguel@novell.com>
1569 * RequestStream.cs (Read): A bug fix for #79112 and what I
1570 consider to be an important change.
1572 The bug fix is that we update the "available" variable as soon as
1573 we consume data from Read, this means that a second call into Read
1574 wont block. Available was only being updated on a secondary code
1575 path, now we alwaysupdate it after using FillFromBuffer.
1577 The second component is what I believe the right behavior should
1578 be. There was a check for "if count > available" that set count
1579 to available in that case. The idea was to limit the data read
1580 from the buffer that belonged to this particular request, to allow
1583 But this test was done after FillFromBuffer, which assumed that
1584 all the data held in the buffer (the one used by FillFromBuffer)
1585 must belong to the this request, and only future data did not.
1587 I think my change is correct, but it assumes that the initialized
1588 RequestStream will be used for other pipelined HTTP requests,
1589 which is not something am 100% sure of, so Gonzalo needs to check
1592 2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1594 * Cookie.cs: avoid nullref in GetHashCode and Equals.
1596 2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1598 * CookieCollection.cs:
1599 * CookieContainer.cs: remove expired cookies.
1601 2006-07-07 Atsushi Enomoto <atsushi@ximian.com>
1603 * Dns.cs : (GetHostEntry) when passed IP addresses, it does not issue
1604 query to DNS. Patch by Petri Latvala.
1606 2006-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1608 * CookieContainer.cs: don't send a secure cookie over an insecure
1611 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1613 * WebProxy.cs: (IsBypassed) 'loopback', 'localhost' and any address
1614 that starts with 127 are special.
1616 2006-05-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1618 * HttpListener.cs: Fixes race condition in BeginGetContext. Patch by
1619 Pawel Sakowski that fixes bug #78365.
1621 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
1623 * ServicePointManager.cs : oops, CONFIGURATION_DEP.
1625 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
1627 * GlobalProxySelection.cs : if corresponding config section is
1628 DefaultProxySection then use it.
1630 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
1632 * WebRequest.cs : if corresponding config section is
1633 WebRequestModulesSection then use it.
1635 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
1637 * ServicePointManager.cs : if corresponding config section is
1638 ConnectionManagementSection then use it.
1640 2006-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1642 * ResponseStream.cs:
1643 * HttpListenerResponse.cs: allow 0 length POST. Patch by Horst Reiterer.
1646 2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1648 * CredentialCache.cs: added DefaultNetworkCredentials.
1650 2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1652 * NetworkCredential.cs: implement ICredentialsByHost interface.
1654 2006-04-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1656 * WebConnection.cs: reset the challenge and the status code when
1657 creating the tunnel and sending the proxy auth. headers. Improve error
1658 message when there's an error creating the tunnel.
1659 * HttpWebRequest.cs: don't trigger an early throw for a POST that gets
1660 a 401 or 407 response.
1662 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1664 * WebConnectionData.cs:
1666 * HttpWebRequest.cs: when tunneling an ssl conneciton through a proxy,
1667 we were not handling a proxy authentication request. Fixes bug #78150
1670 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1672 * WebProxy.cs: a .ctor was not forwarding the 'credentials' argument.
1673 This fixes bug #78150. Also fix the bypass check for local requests.
1675 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1677 * WebProxy.cs: removed bogus ^M.
1679 2006-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1681 * HttpWebResponse.cs: don't remove the Set-Cookie headers. Fixes bug
1684 2006-04-04 Atsushi Enomoto <atsushi@ximian.com>
1686 * WebClient.cs : added a bunch of async method support.
1688 2006-04-03 Chris Toshok <toshok@ximian.com>
1690 * HttpWebResponse.cs (ContentEncoding): return "" if the header
1693 2006-03-30 Atsushi Enomoto <atsushi@ximian.com>
1695 * DownloadStringCompletedEventHandler.cs : missing delegate.
1697 2006-03-30 Atsushi Enomoto <atsushi@ximian.com>
1699 * Dns.cs : minor argument renaming.
1701 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
1703 * DownloadDataCompletedEventArgs.cs
1704 DownloadDataCompletedEventHandler.cs
1705 DownloadProgressChangedEventArgs.cs
1706 DownloadProgressChangedEventHandler.cs
1707 DownloadStringCompletedEventArgs.cs
1708 OpenReadCompletedEventArgs.cs
1709 OpenReadCompletedEventHandler.cs
1710 OpenWriteCompletedEventArgs.cs
1711 OpenWriteCompletedEventHandler.cs
1712 UploadDataCompletedEventArgs.cs
1713 UploadDataCompletedEventHandler.cs
1714 UploadFileCompletedEventArgs.cs
1715 UploadFileCompletedEventHandler.cs
1716 UploadProgressChangedEventArgs.cs
1717 UploadProgressChangedEventHandler.cs
1718 UploadStringCompletedEventArgs.cs
1719 UploadStringCompletedEventHandler.cs
1720 UploadValuesCompletedEventArgs.cs
1721 UploadValuesCompletedEventHandler.cs : added 2.0 types.
1723 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
1725 * Dns.cs : filled missing NET_2_0 members.
1727 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
1729 * IPAddress.cs : ugh, I was testing with run-test-ondotnet, not
1730 run-test. Those IPv6 properties needed to be reimplemented.
1732 2006-03-27 Atsushi Enomoto <atsushi@ximian.com>
1734 * IPAddress.cs : added NET_2_0 TryParse() and IPv6 related properties.
1736 2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1738 * WebConnectionStream.cs: avoid Begin/EndWrite when the body length is
1741 2006-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1743 * HttpWebRequest.cs: send the request if ContentLength is set for
1744 POST/PUT, the request stream has that exact amount of bytes in it and
1745 we're trying to get the response stream.
1747 This way, closing the request stream is not needed in order to actually
1748 send the request. Fixes bug #77753.
1750 * WebConnectionStream.cs: throw if the number of bytes written is
1751 greater than the specified request content length.
1753 2006-03-11 Miguel de Icaza <miguel@novell.com>
1755 * WebClient.cs: Only expose the right methods to avoid warnings.
1757 * FtpDataStream.cs (Dispose): Fix signature.
1759 * FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
1760 like we are missing features here).
1762 * IPAddress.cs: Move m_HashCode property to the end, and set
1763 pragmas to disable warnings.
1765 2006-02-16 Dick Porter <dick@ximian.com>
1767 * IPEndPoint.cs: The SocketAddress AddressFamily takes up the
1768 first two bytes, not just one. Check the size of the
1769 SocketAddress buffer for IPv6 as well.
1771 * Dns.cs: Cope when GetHostByName_internal or
1772 GetHostByAddr_internal returns fewer items in the array than it
1773 intended to (maybe due to conversion errors.)
1775 2006-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1777 * FtpWebResponse.cs: Add UpdateStatus method, to update both
1778 statusCode and statusDescription at the same time.
1780 2006-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1782 * FtpWebRequest.cs: Remove WebExceptionStatus argument
1783 from CreateExceptionFromResponse, since exceptions gotten
1784 from server response always have a WebExceptionStatus.ProtocolError
1787 2006-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1789 * FtpWebRequest.cs: Add renaming support when using
1790 WebRequestMethods.Ftp.Rename method.
1792 2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1794 * ChunkedInputStream.cs:
1795 * ChunkStream.cs: handle partial trailers and zero reads. Patch by Pawel
1798 2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1800 * HttpWebRequest.cs: don't send the expect-100 if if there's no content.
1802 * HttpListenerRequest.cs:
1803 * HttpConnection.cs:
1804 * RequestStream.cs: use the content length header to avoid reading past
1805 the end of the stream.
1807 Patch by Horst Reiterer.
1809 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1811 * FtpWebRequest.cs: Add supportedCommands array with the sorted
1812 methods, to search using Array.BinarySearch. Remove CheckMethod.
1814 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1816 * FtpWebRequest.cs: Fixed some typos and small issues.
1818 2006-02-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1820 * HttpWebRequest.cs: dummy implementation of UnsafeAuthenticationBlah
1823 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1825 * FtpRequestCreator.cs:
1826 * FtpAsyncResult.cs:
1829 * FtpWebResponse.cs: Initial implementation of FtpWebRequest (2.0)
1831 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1833 * FtpStatusCode.cs: Fix a typo.
1835 2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1837 * WebClient.cs: (2.0) UploadString() returns string, not void.
1839 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1841 * HttpWebResponse.cs: ignore non-integer values for max-age and version.
1842 Fixes bug #77199. Thanks to Cyrille Colin.
1844 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1846 * HttpWebResponse.cs: cope with malformed cookies with '=' as value.
1847 Patch by Cyrille Colin. Fixes bug #77179.
1849 2005-12-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1851 * FtpStatusCode.cs: New 2.0 enum.
1853 2005-12-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1855 * CookieContainer.cs: fix matching of subdomains. Patch by Cyrille
1858 2005-12-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1860 * HttpWebResponse.cs: don't loop forever when no name or value between
1861 semicolons. Fixes bug #76943.
1863 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1865 * HttpWebResponse.cs: don't fail if the cookie ends with a 'name'
1866 without a value. Fixes bug #76922.
1868 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1870 * EndPointListener.cs:
1871 * HttpListenerRequest.cs: don't require the Host header for 1.0. Just
1872 map that to the '*' or '+' host.
1874 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1876 * IPAddress.cs: the byte[] ctor supports length 4 in .NET 2.0.
1879 2005-11-21 Senganal T <tsenganal@novell.com>
1881 * Dns.cs : corrected a mistake in GetHostEntry ()
1883 2005-11-21 Senganal T <tsenganal@novell.com>
1885 * Dns.cs : added GetHostEntry() method for 2.0 api conformance
1887 2005-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1889 * HttpRequestHeader.cs: add missing values.
1891 2005-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1893 * HttpListenerPrefixCollection.cs:
1894 * HttpWebResponse.cs:
1896 * HttpListenerRequest.cs:
1897 * HttpWebRequest.cs:
1898 * HttpListenerResponse.cs: a few signature fixes for 2.0.
1900 2005-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1902 * HttpListenerPrefixCollection.cs:
1903 * EndPointListener.cs:
1904 * HttpStreamAsyncResult.cs:
1905 * HttpListenerContext.cs:
1906 * HttpListenerBasicIdentity.cs:
1907 * AuthenticationSchemeSelector.cs:
1909 * WebHeaderCollection.cs:
1910 * ListenerPrefix.cs:
1911 * HttpListenerException.cs:
1912 * HttpResponseHeader.cs:
1913 * EndPointManager.cs:
1914 * HttpListenerRequest.cs:
1915 * HttpRequestHeader.cs:
1916 * BindIPEndPoint.cs:
1917 * ResponseStream.cs:
1918 * ChunkedInputStream.cs:
1919 * HttpStatusCode.cs:
1920 * ListenerAsyncResult.cs:
1922 * HttpConnection.cs:
1924 * HttpListenerResponse.cs:
1925 * RequestStream.cs: initial implementation of HttpListener. There are
1926 a few TODOs left (cookies, HTTPS) but almost everything else is in.
1928 2005-11-15 Sebastien Pouliot <sebastien@ximian.com>
1930 * IPv6Address.cs: Added on overload to ToString to get a the full
1931 length address returned (as required by System.Uri).
1933 2005-11-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1935 * WebRequestMethods.cs: New 2.0 class.
1937 2005-11-05 Atsushi Enomoto <atsushi@ximian.com>
1939 * WebClient: use POST for DownloadData(). Fixed bug #76631.
1941 2005-10-26 Atsushi Enomoto <atsushi@ximian.com>
1943 * AuthenticationSchemes.cs : Fixed enum values and added [Flags].
1945 2005-10-19 Atsushi Enomoto <atsushi@ximian.com>
1947 * WebClient.cs : added net_2_0 DownloadString() and DownloadData()
1948 with HTTP method as well.
1950 2005-10-19 Atsushi Enomoto <atsushi@ximian.com>
1952 * WebClient.cs : added UploadString() and Encoding (net_2_0). Added
1953 some new overloaded stuff that takes Uri instead of string address.
1955 2005-10-17 Sebastien Pouliot <sebastien@ximian.com>
1957 * ICredentialPolicy.cs: New. Interface for 2.0.
1959 2005-10-05 Atsushi Enomoto <atsushi@ximian.com>
1961 * AuthenticationSchemes.cs : new 2.0 enum.
1963 2005-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1965 * GlobalProxySelection.cs: remove double lock.
1966 * HttpWebRequest.cs: remove double lock in GetServicePoint() and use
1967 a private object when locking.
1969 2005-07-15 Miguel de Icaza <miguel@novell.com>
1971 * DigestClient.cs: Fix bug #75556, the qop argument must be
1972 quoted, per http://www.faqs.org/rfcs/rfc2617.html section
1975 2005-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1977 * WebConnectionStream.cs: initiate writing the body before trying to
1978 read. This fixes the performance problems observed in web services.
1981 2005-06-27 Lluis Sanchez Gual <lluis@novell.com>
1983 * IPAddress.cs: Changed field names for the sake of serialization
1984 interoperability with MS.NET.
1986 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1988 * WebConnection.cs: if cnc.EndRead throws, mark the asyncresult as done.
1989 * WebConnectionStream.cs: if we're done with the body of a chunk, don't
1990 require the next chunk header to be there, as some servers might close
1991 the connection (while also sending 'Connection: close').
1993 2005-06-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1995 * HttpWebRequest.cs: MS implementation follows redirects for POST. Seems
1996 to me that this is against 10.3.3 in RFC 2616, but may be the user
1997 'authorization' to do this is implicit in AllowAutoRedirect...
1999 2005-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2001 * WebConnection.cs: SslClientStream.BeginRead might not be asynchronous
2002 if there's no record available to read. This is a workaround that makes
2003 the call to BeginRead itself asynchronous. Fixes bug #75342.
2005 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2008 * HttpWebRequest.cs:
2009 * WebConnectionStream.cs: initiate the polling for input data after
2010 sending the header so that we detect any response that the server sends
2011 back even if we're still trying to write the request for a POST/PUT.
2012 If we get the response (or an error) before any one calls GetResponse(),
2013 keep it around instead of ignoring it.
2015 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2017 * HttpWebRequest.cs: send the right header/user/password in
2018 PreAuthenticate in presence of a proxy.
2020 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2022 * IPv6Address.cs: fix IsLoopback. Closes bug #75128.
2024 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2026 * IPv6Address.cs: don't do extra check on ipv4 if this is a ipv6
2027 address. Fixes bug #75125.
2029 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2031 * ServicePointManager.cs: when going through a proxy, use 2 different
2032 service points depending on the scheme. Fixes bug #75135.
2034 2005-05-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2036 * Dns.cs: don't parse the address when it comes from an IPAddress.
2038 2005-05-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2040 * WebConnection.cs: prevent 2 nullrefs when the aborting during
2041 Connect() and reset the status to Success before starting a new
2044 2005-05-19 Sebastien Pouliot <sebastien@ximian.com>
2046 * WebRequest.cs: Throw NotImplementedException (not NotSupported
2047 Exception) for stuff that should have been abstract. No exception
2048 is thrown by the serialization constructor.
2050 2005-05-04 James Willcox <james@ximian.com>
2052 * DigestClient.cs: convert to a hex string with "X8" consistently
2055 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2057 * WebConnection.cs: don't rethrow errors in Write, as the error will be
2058 received by GetResponse*. The result is that the threadpool thread doing
2059 this will not end up printing the exception. Fixes bug #74817.
2061 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2063 * ServicePoint.cs: HostEntry needs to be thread safe.
2065 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2067 * WebConnection.cs: removed a 'slightly' important line by mistake.
2068 * WebConnectionStream.cs: if the transfer encoding is chunked, ignore
2069 content-length header if present.
2071 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2073 * WebConnection.cs: no need to use an AutoResetEvent.
2074 * WebConnectionStream.cs: don't start any more reads on the socket
2075 after getting a 0 signalling the end. This fixes Ben's infamous foo.cs
2078 2005-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2080 * BasicClient.cs: firefox/IE just send latin1, stripping the high byte
2081 from unicode >= 256 characters.
2083 2005-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2085 * BasicClient.cs: use latin1 when encoding the username/domain/password.
2088 2005-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2090 * WebConnectionStream.cs: if the BeginRead/BeginWrite is completed
2091 synchronously, no need to create the ManualResetEvent to wait on.
2093 2005-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2095 * WebConnectionStream.cs: call SetComplete in EndWrite when we're not
2096 buffering the request body. Fixes bug #74637.
2098 * WebAsyncResult.cs: renamed field.
2100 2005-04-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2102 * WebConnectionStream.cs:
2103 * WebAsyncResult.cs: ensure we only call EndRead once per async. result.
2104 Update total before invoking the callback when present.
2106 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2109 * WebConnectionStream.cs: don't start reading until we've sent at least
2110 the headers. This way we ensure that a Write happens before any Read,
2111 which is needed by the SSL code.
2113 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2115 * HttpWebRequest.cs: ensure we read everything before redirecting.
2117 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2119 * WebConnectionStream.cs: provide a default callback when doing async.
2120 read/write and waiting for a timeout so that the callback sets the
2121 event and we don't block forever. Fixes bug #74539 take 3.
2123 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2126 * HttpWebRequest.cs: now Abort() works properly. Fixes bug #74177.
2128 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2130 * WebConnection.cs: fix some breakage from my last patch.
2131 * WebConnectionStream.cs: invoke the callback when done even in EndRead.
2133 2005-04-10 Sebastien Pouliot <sebastien@ximian.com>
2135 * WebConnection.cs: Added support for TrustFailure when throwing a
2136 WebException. Fix bug #74286.
2138 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2140 * HttpWebRequest.cs:
2141 * WebConnectionStream.cs: implemented support for ReadWriteTimeout.
2143 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2145 * WebConnection.cs: if we're reading chunked data and didn't use the
2146 stream to read, we gotta set the async. result as complete and invoke
2147 the callback. Don't call nstream.EndRead with the wrong IAsyncResult.
2149 * WebConnectionStream.cs: in EndRead, pass the correct IAsyncResult to
2150 cnc.EndRead. Lock on a field instead of 'this'.
2152 2005-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2154 * HttpWebRequest.cs: throw the exception if we got an error, as now
2155 it's catched in the redirection handling code.
2157 2005-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2159 * HttpWebRequest.cs: moved redirection handling to a proper place.
2161 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2163 * WebHeaderCollection.cs: added if-modified-since to the list of
2166 * ServicePoint.cs: use a field object when locking.
2168 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2170 * WebConnectionStream.cs: ForceCompletion actually calls NextRead. No
2171 need to wait for a Close/ReadAll when we have no content.
2173 2005-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2175 * NtlmClient.cs: fix typo in assembly name.
2177 2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2179 * CookieContainer.cs: adding to a CookieCollection might not increment
2180 the number of items if the cookie is replaced. Now Count works properly.
2181 Fixed an array index exception (typo).
2183 * CookieCollection.cs: also compare the version.
2185 * HttpWebResponse.cs: when we have cookies, add them to the request
2188 * HttpWebRequest.cs: changed last parameter of HttpWebResponse ctor.
2190 2005-03-30 Miguel de Icaza <miguel@novell.com>
2192 * Cookie.cs: Compare using the InvariantCulture, to match the
2193 behavior of CookieContainer that already did this.
2195 2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2197 * WebConnection.cs: we don't need to trigger the next queued request
2198 until the response is closed.
2200 2005-03-29 Miguel de Icaza <miguel@novell.com>
2202 * HttpWebResponse.cs: Handle quotations in the cookies values, per
2203 the spec http://www.faqs.org/rfcs/rfc2109.html, it is allowed to
2206 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2209 * DigestClient.cs: check that GetCredential() does not return null.
2211 2005-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2213 * BasicClient.cs: ensure credentials are not null.
2215 2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2217 * HttpWebResponse.cs: moved cookie parsing into its own class.
2218 * WebHeaderCollection.cs: remove (probably bogus) GetMultipleValues
2220 * HttpWebRequest.cs: don't let exception raised in the ctor of
2221 HttpWebResponse vanish.
2225 2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2227 * WebHeaderCollection.cs: handle commas inside quotes when splitting
2228 a multi-value header. Fixes bug #73151.
2230 2005-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2232 * DigestClient.cs: fix for digest auth. and URIs containing query. Patch
2233 by James Wilcox. Fixes bug #72571.
2235 2005-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2237 * HttpWebResponse.cs:
2239 * HttpWebRequest.cs:
2240 * WebConnectionStream.cs: don't read the entire response unless the
2241 user requests it. Fixes bug #72443.
2243 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
2245 * IPv6Address.cs: Fix endianess problems.
2247 * IPAddress.cs: Fix misleading comments.
2249 2005-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2251 * HttpWebRequest.cs: send the headers when we're supposed to write
2252 a POST/PUT but call GetResponse before GetRequestStream.
2254 * WebConnectionStream.cs: new RequestWritten property.
2256 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
2258 * EndpointPermission.cs: Fix IsSubsetof(hostname) so that the regression
2259 tests work. In particular, IsSubsetOf ("12.13.*.*", "12.13.14.*") failed
2260 because 14 wasn't a subset of * (which it is). Fix: if part1 is we
2261 continue to the next portion.
2263 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
2265 * IPAddress.cs (ParseIPV4): Fix so that the regression tests work. In
2266 particular, " foo" and ".1.1.6" weren't being caught (" foo" because it
2267 started with a space, and ".1.1.6" because the split string accepted a
2268 0-length portion, which would make 1...6 valid, but isn't valid based on
2269 similar test cases).
2271 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
2273 * WebHeaderCollection.cs: Fix GetValues(string) to split the values on
2274 commas if the header is a Multi-Value header. This matches
2275 MonoTests.System.Net.WebHeaderCollectionTest.
2277 2005-01-19 Sebastien Pouliot <sebastien@ximian.com>
2279 * WebPermissionAttribute.cs: Fixed NET_1_1 behaviour.
2281 2004-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2283 * WebConnectionStream.cs: remove unneeded check. Write detects and
2284 triggers the exception now.
2286 2004-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2288 * AuthenticationManager.cs: don't lock on a public Type.
2289 * HttpWebRequest.cs: read the error response for auth. errors.
2291 2004-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2293 * HttpWebRequest.cs: set webResponse back to null when redirecting.
2294 Fix the previous patch so that it reads the whole response even if
2295 auto-redirect is not enabled. Closes bug #70484.
2297 2004-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2299 * HttpWebResponse.cs: added ReadAll method.
2301 * WebConnection.cs: in HandleError, set the response error after
2302 closing the socket. Use an async. delegate to finish reading any prior
2303 WebConnectionStream.
2305 * HttpWebRequest.cs: for error responses that allow content, read the
2306 stream immediately. Fixes bug #70483.
2308 2004-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2310 * CookieContainer.cs: quote the port number.
2312 2004-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2315 * WebConnectionStream.cs: removed TryReconnect. It's no longer needed.
2317 2004-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2319 * WebConnection.cs: set the event in Close so that if the queue is
2320 empty, we won't block forever on next request. The finalizer was
2321 removed because we're not implementing IDisposable pattern here.
2323 2004-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2325 * WebConnection.cs: handle errors on chunked streams. Fixes bug #66858.
2326 * ChunkStream.cs: added error checking all over.
2328 * HttpWebRequest.cs: throw the exception received in SetResponseError
2329 if we already have a response.
2330 (SetRequestData): Don't nest the exception if it's a WebException.
2332 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2334 * WebConnection.cs: remove prevStream and don't set busy to false in
2335 HandleError. prevStream is not needed any more and setting 'busy' so
2336 early might let a request skip the queue.
2338 * WebConnectionGroup.cs: decrement the indexer when removing a dead
2339 reference from the arraylist.
2341 * WebConnectionStream.cs:
2342 (ReadAll): call NextRead if it has not been called before even when
2343 we have completed the request. Reuse the read buffer when reading a
2344 response of unknown size. Increase the buffer to 8kB.
2345 (BeginRead): increase pendingReads earlier and even when reading from
2346 the internal buffer.
2347 (EndRead): decrease pendingReads later and always.
2349 2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2351 * CookieContainer.cs: style, fixed checks for properties, implemented
2352 the MonoTODOs for the method that take an Uri. GetCookies and
2353 GetCookieHeaders now really return only the cookies that are requested
2354 filtering by the Uri parameter.
2356 * Cookie.cs: style, added default values for Comment, Domain and Port.
2358 2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2360 * CookieCollection.cs: reformatted, fixed Add by adding a new method to
2361 search across the arraylist, as list.IndexOf is not what we want.
2363 2004-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2365 * WebConnection.cs: check for FIN or RST on the socket before reusing.
2368 2004-11-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2370 * ChunkStream.cs: simplified condition for WantMore property.
2372 * WebConnection.cs: in Connect(), finish any pending reads we might
2373 have for chunked data. Ignore possible blank lines at the very
2374 beginning of the server response. Honor user set KeepAlive in
2375 HttpWebRequest for HTTP/1.1 connections. Thanks to Eyal Alayuf for
2376 his suggestions and code.
2378 2004-11-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2380 * HttpWebResponse.cs: don't lock up when the cookie received ends with
2381 a semicolon. Patch by Darryl VanDorp. Fixes bug #68956.
2383 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2385 * HttpWebRequest.cs: don't fail if the request has already been sent
2386 when accessing ContentType setter. Fixes bug #68848.
2388 2004-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2391 (WantMore): we're not done until we get a 0 chunk size and the trailer.
2392 The 0 can be expressed as more than one character too (ie, 000000).
2394 * HttpWebRequest.cs: new argument in SetResponseError.
2395 * WebConnection.cs: added argument to HandleError as a hint for
2397 (Connect): make the chunked stream be in the expected state when
2400 * WebConnectionStream.cs: removed unused method (ResetWriteBuffer).
2402 2004-10-10 David Sheldon <dave-mono@earth.li>
2404 * HttpWebRequest.cs: Use RemoveAndAdd for AddRange. Fixes unittest.
2406 2004-10-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2408 * HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
2409 * WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
2412 2004-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2414 * HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
2415 tunneling a secure connection.
2417 * ServicePoint.cs: added UseConnect property.
2419 * ServicePointManager.cs: set the UseConnect property when we use a http
2420 proxy for a https connection.
2422 * WebConnection.cs: setup the tunnled connection when using a proxy and
2425 2004-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2427 * HttpWebResponse.cs: remove unused SplitValue method.
2429 2004-09-10 Sebastien Pouliot <sebastien@ximian.com>
2431 * DnsPermission.cs: Updated to pass new unit tests.
2432 * DnsPermissionAttribute.cs: Cleanup.
2433 * SocketPermission.cs: Updated to pass new unit tests.
2434 * SocketPermissionAttribute.cs: Updated to pass new unit tests.
2435 * WebPermission.cs: Implemented some TODO - not complete yet.
2436 * WebPermissionAttribute.cs: Updated to pass new unit tests.
2438 2004-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2440 * Cookie.cs: don't fail when using default constructor. Fixes bug
2443 2004-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2445 * HttpWebResponse.cs: set-cookie and set-cookie2 can be present more
2446 than once and have multiple values. Don't rely on string.split when
2447 parsing cookie values.
2449 * WebHeaderCollection.cs: same thing for set-cookie and set-cookie2.
2450 Fixed GetValues (it was splitting values that contained a comma) and
2451 changed SetInternal to handle multi-value headers.
2455 2004-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2457 * WebProxy.cs: fix scheme detection. Patch by Konstantin Triger
2458 (kostat@mainsoft.com).
2460 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2462 * HttpWebRequest.cs: detect changes in scheme or port when redirecting.
2463 Fixes las take on bug 61218.
2465 2004-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2467 * WebConnection.cs: moved loading of the ssl stream Type to its own
2468 method. Don't create a new ssl stream if we're reusing the connection.
2470 * WebConnectionStream.cs: ensure the number of bytes copied in ReadAll
2471 is the expected even if the dta from the server has extra bytes.
2473 2004-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2476 * WebConnectionStream.cs: when the status code is 1xx, 204 or 304,
2477 "responses MUST NOT include a message-body". We tried to read the
2478 stream even when getting those codes and considered the 0 length
2481 2004-07-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2483 * HttpWebRequest.cs: removed bogus Monitor.Exit.
2484 * WebConnection.cs: use Address instead of RequestUri when checking for
2485 the scheme in order to select the stream type. Fixes bug #61218.
2487 2004-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2489 * ChunkStream.cs: added ChunkLeft property.
2491 (EndRead): when using small byte arrays to read from a chunked stream,
2492 ensure we've read the chunk size and try to fulfill the request
2493 completely. fixes bug 59653.
2495 2004-05-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2497 * WebConnectionStream.cs: fixed CanRead property. Closes bug #59273.
2499 2004-05-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2501 * DigestClient.cs: cache the sessions based on address and
2502 credentials, not only address. Added poor men's expiration to
2503 the session cache. Fixes bug #59202.
2505 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2509 * IPv6Address.cs: no more warnings about IPAddress.Address.
2511 2004-05-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2513 * WebException.cs: implemented serialization .ctor and
2516 2004-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2518 * WebAsyncResult.cs: don't create the WaitHandle if not needed.
2520 2004-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2522 * HttpWebRequest.cs: added 3 missing properties for 1.1. They are not
2525 * NetConfig.cs: added MaxResponseHeadersLength field.
2528 * ServicePointManager.cs: added missing properties for 1.1.
2530 2004-05-03 Sebastien Pouliot <sebastien@ximian.com>
2532 * WebConnection.cs: Use assembly name const to load Mono.Security.
2534 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
2536 * NtlmClient.cs: Use assembly name const to load Mono.Security.
2538 2004-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2540 * WebConnectionStream.cs: avoid the exception when getting the content
2543 2004-03-29 Lluis Sanchez Gual <lluis@ximian.com>
2545 * HttpWebRequest.cs: Use a lock block instead of Monitor.Enter/Exit, so
2546 the lock is released in case of exception (for example, a
2547 ThreadAbortException). This also "fixes" bug #52417.
2548 Beware, this requires a runtime update (due to a bug in Monitor.Exit).
2549 * ServicePoint.cs: Changed method from internal to private, since it
2550 is not called from outside the class.
2552 2004-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2554 * HttpWebRequest.cs: added the exception status to the error message.
2555 * WebConnection.cs: add headers using SetInternal instead of Add to
2556 bypass header name validation. Fixes bug #55994.
2557 * WebHeaderCollection.cs: added SetInternal (string header).
2559 2004-03-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2562 * WebConnectionGroup.cs: the requests queue is now shared for all the
2563 connections belonging to the same connection group.
2565 2004-02-26 Sebastien Pouliot <sebastien@ximian.com>
2567 * DefaultCertificatePolicy.cs: New. Certificate validation
2568 policy compatible with the documented one present in Fx. It
2569 allows valid certificates and expired certificates to be used
2570 for SSL connections.
2571 * ServicePointManager.cs: Removed the DummyPolicy. Now creates
2572 a DefaultCertificatePolicy to validate certificates.
2574 2004-02-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2576 * ServicePoint.cs: SendContinue is always false for HTTP/1.0
2578 * WebConnection.cs: get rid of WaitForContinue() (yes!) and prevent
2579 calling more the ContinueDelegate more than once when we get the
2580 headers in several packets.
2582 * WebConnectionStream.cs: removed call to WaitForContinue.
2584 2004-02-25 Sebastien Pouliot <sebastien@ximian.com>
2586 * WebConnection.cs: Update previous patch to use HttpsClientStream
2587 (internal in Mono.Security assembly) in place of SslClientStream.
2588 This will reduce reflection and allow to use ICertificatePolicy.
2590 2004-02-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2592 * DigestClient.cs: fix quote handling. Reordered attributes in response.
2593 Fixed typo (QOP->CNonce). Now Digest works with apache2.
2595 2004-02-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2597 * DigestClient.cs: removed Console.
2598 * HttpWebRequest.cs: 401/407 were hanging for GET. Fixed.
2600 2004-02-24 Sebastien Pouliot <sebastien@ximian.com>
2602 * DigestClient.cs: Fixed issue with Apache server which do not use "
2603 for specifying the digest algorithm (.e.g. algorithm=MD5 not ="MD5").
2605 2004-02-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2607 * HttpWebRequest.cs: arghhh. I used the server response headers instead
2608 of what the client is supposed to send. Thanks to Helge Hess.
2610 2004-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2612 * AuthenticationManager.cs: implemented PreAuthenticate().
2614 * HttpWebRequest.cs: once we know the version of the server, use it if
2615 below the requested one. Remove 'Expect', 'Content-Length' and /or
2616 'Transfer-Encoding' if appropiate due to changes in version. Fixed
2617 'Host' header for non-standard ports. Support preauthentication. Closes
2620 2004-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2622 * HttpWebRequest.cs: check for missing or wrong URI in Location header
2625 * WebConnection.cs: if the data read does not contain all the headers,
2626 keep it around and read the rest until we get to the response body.
2627 Allow response code with no description. Fixed bug #54543.
2629 2004-02-18 Sebastien Pouliot <sebastien@ximian.com>
2631 * SecurityProtocolType.cs: Added missing [Serializable] to enum. Added
2632 Default and Ssl2 to NET_2_0 profile. Enum is now internal for NET_1_0
2633 profile (as we need it for SslClientStream).
2634 * ServicePoint.cs: Added internal SetCertificates(client,server).
2635 * ServicePointManager.cs: Added CheckCertificateRevocationList and
2636 CheckCertificateRevocationList static properties (public in 1.1,
2638 * WebConnection.cs: Dynamically creates a SslClientStream (from
2639 Mono.Security assembly) in case of https. Changed NetworkStream to
2642 2004-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2644 * HttpWebRequest.cs: send the 'Connection: keep-alive' header when we
2645 don't know the server version or it's 1.0.
2647 * ServicePoint.cs: added SetVersion.
2649 * WebAsyncResult.cs: remove ChunkAsyncResult.
2651 * WebConnection.cs: set the ServicePoint version when getting a response
2654 * WebConnectionStream.cs: when posting chunked content, send the head,
2655 body and trailer of the chunk at once instead of doing 3 separate
2656 writes, which may cause troubles.
2658 2004-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2660 * WebConnection.cs: if we get a 100 when we're not waiting for it, set
2661 that information in the ServicePoint.
2663 * WebConnectionStream.cs: send headers in the right order for
2666 2004-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2668 * WebConnectionStream.cs: fixed nullrefs in BeginWrite/EndWrite.
2670 2004-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2672 * HttpWebRequest.cs: on second and sucesive tries when authenticating,
2673 don't use chunked encoding for POST, as we know the content length and
2674 have the body. Nullify bodyBuffer always in CheckFinalStatus.
2676 * WebAsyncResult.cs: added ChunkAsyncResult property. It holds the
2677 IAsyncResult when writing CRLF at the end of a chunk.
2679 * WebConnectionStream.cs: support sending chunked data.
2681 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
2683 * HttpWebRequest.cs: When retrying a POST request after an
2684 authentication failure, resend the body. This fixes bug #51841.
2685 * WebConnectionStream.cs: Added properties for getting what's been
2688 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2690 * HttpWebRequest.cs: don't send 'Expect: 100-continue' for 1.0 version.
2692 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2694 * HttpWebRequest.cs: support proxy authentication.
2696 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2699 * DigestClient.cs: use IndexOf instead of StartsWith to deal with
2700 servers that provide several authentication schemas.
2702 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2704 * ChunkStream.cs: use an array of buffers instead of a MemoryStream for
2705 storing the chunks. This way, we won't miss traling data from the
2706 previous chunk when a new one is received before the other is fully
2709 2004-01-27 Nick Drochak <ndrochak@ieee.org>
2712 * HttpWebRequest.cs:
2716 * WebConnectionStream.cs: Remove unused variables thus eliminating some
2719 2004-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2721 * WebConnection.cs: patch by Yaacov Akiba Slama that fixes 100-continue
2722 handling for the case when the same packet also contains the actual
2725 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
2727 * HttpWebRequest.cs: Added missing property.
2729 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2731 * Dns.cs: don't block forever in EndResolve and EndGetHostByName. Fixes
2734 2004-01-16 Lluis Sanchez Gual <lluis@ximian.com>
2736 * ChunkStream.cs: The "size" parameter of Write is not the number of
2737 bytes to write, but the last offset to be written. Thus, in WriteAndRead
2738 Back, since "read" is not an offset but the number of bytes, it must be
2739 added to the offset. Maybe it would be a good idea to change the name of
2740 the parameter, since it is confusing. This should fix bug #52591.
2742 2004-01-12 Lluis Sanchez Gual <lluis@ximian.com>
2744 * WebConnection.cs: Yet another fix for WebConnection. This fixes
2747 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2749 * WebConnection.cs: Data.Init is a bad boy. Lluis realized. He also
2750 tidied up the end of ReadDone. Disabled relaunching the request if 2
2751 InitRead are called, since now we don't throw everything into
2752 RegisterWaitForSingleObject but one request at a time.
2754 * WebConnectionGroup.cs: when checking available connections, allow them
2755 not to be Connected but allocated to honor the connection limit.
2757 * WebConnectionStream.cs: CheckComplete() now checks for nextReadCalled
2758 too. ReadAll don't mess contentLength if it's provided in the headers.
2760 BIG thanks to Lluis. Turns out that we were debugging the same stuff and
2761 his Data.Init discovery was THE thing I was missing.
2765 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2767 * ServicePointManager.cs: use GetMaxConnections to get the appropiate
2768 number of connections limit.
2770 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2772 * MonoHttpDate.cs: use the invariant culture, not en-US. Suspected
2773 guilty for bug 52629.
2775 2003-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2777 * CredentialCache.cs: return null instead of throwing NotImplemented.
2779 2003-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2781 * HttpWebRequest.cs: fixed checking if method allows a body. Patch by
2782 Benjamin Jemlich (pcgod@gmx.net).
2784 2003-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2786 * HttpWebRequest.cs: deal with authentication schemes that have more
2787 than 1 round trip (Ntlm).
2789 2003-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2791 * NtlmClient.cs: new class that actually uses one from Mono.Http to do
2794 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2796 * HttpWebRequest.cs: when building the redirect URI, use the previous
2797 one as the base URI, which makes relative URIs work.
2799 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2801 * DigestClient.cs: merged in code from Sebastien Pouliot and Greg
2802 Reinacker that Supports cnonce and preauthentication.
2804 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2806 * DigestClient.cs: initial Digest authentication. Works with apache
2809 2003-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2811 * HttpWebRequest.cs: removed unneeded StringBuilder.
2812 * WebConnection.cs: default to keep the connection open for HTTP/1.1
2813 only or HTTP/1.0 + (Proxy-)Connection header. Fixes bug #51208.
2815 2003-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2817 * WebConnection.cs: turns out that socket.Connected is not useful until
2818 we actually try to send/receive data, even if the other end has already
2819 closed the socket. Added TryReconnect() and Connected.
2821 * WebConnectionData.cs: default value for StatusCode is 0 now.
2823 * WebConnectionGroup.cs: reuse the connection since the beginning,
2824 instead of opening up to ConnectionLimit and then reusing.
2826 * WebConnectionStream.cs: reopen the socket if we're trying to reuse
2827 one which fails on first write.
2829 2003-11-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2831 * WebConnectionStream.cs: when a callback is passed to BeginRead/Write,
2832 wrap it and do our job before calling it. Fixes bug #48497.
2834 2003-11-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2836 * WebExceptionStatus.cs: Restyled, Added .Net 1.1 members
2837 * SecurityProtocolType.cs: Added and implemented
2839 2003-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2841 * HttpWebRequest.cs: fixed redirects when they target another host.
2843 2003-11-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2845 * IPAddress.cs: prevent exceptions when trying to parse the static IPv6
2848 2003-10-17 Pedro Martinez Julia <yoros@wanadoo.es>
2850 * WebClient.cs: use Path.DirectorySeparator instead of "/" for
2851 windows compatibility. Add some checks for file paths like
2852 "C:/xxx/yyy/..." and like "/home/xxx/...".
2854 2003-10-16 Pedro Martinez Julia <yoros@wanadoo.es>
2856 * WebClient.cs: added a slash between directory and file names.
2858 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2860 * HttpWebRequest.cs:
2861 * HttpWebResponse.cs: better abort handling and leave the stream in a
2862 stable status on abort.
2864 2003-10-12 Pedro Martinez Julia <yoros@wanadoo.es>
2866 * WebClient.cs: refine reading of local files (like MS.NET).
2868 2003-10-10 Pedro Martinez Julia <yoros@wanadoo.es>
2870 * WebClient.cs: MS.NET works right when we try OpenRead("file.txt")
2871 but we didn't. Now, when Uri fails with an exception, it adds
2872 "file://" before the URI and tries again.
2874 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2876 * ServicePoint.cs: preparing for recycling. Not yet finished.
2877 * ServicePointManager.cs: this is the one that reads config.
2878 * WebConnectionGroup.cs: don't read config here.
2879 * WebConnection.cs: added the queue again. Launch queued requests on
2882 2003-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2884 * WebConnection.cs: the queue is now handled by the threadpool.
2885 Initialize the connection data in a place where it does not depend on
2886 the execution order of the requests in threadpool. More error handling.
2888 * WebConnectionGroup.cs: use the limits in the config file and reuse
2889 connections when the limit is reached.
2891 2003-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2893 * HttpWebRequest.cs: handle 304 a la MS.
2894 * WebConnection.cs: set the response data when reading 0 bytes.
2896 2003-09-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2898 * WebConnectionStream.cs: fix by Lluis to avoid the stream being in an
2901 2003-08-14 Nick Drochak <ndrochak@gol.com>
2903 * WebRequest.cs: Check lower case string since that is what we will add.
2905 2003-08-04 Jerome Laban <jlaban@wanadoo.fr>
2907 * IPHostEntry.cs: Default contructor must not initialize members.
2910 2003-07-27 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2912 * CredentialCache.cs: Removed undefined serializable attribute
2914 2003-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2917 (WantMore): true if we've not received the last chunk yet. Fixes
2918 bug #45463. Thanks to Miguel for tracking this down and providing a
2921 * WebConnection.cs: removed bogus ^M's.
2923 * WebHeaderCollection.cs: provide more info when the header or value is
2926 2003-07-15 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2928 * ChunkStream.cs: Removed unused members
2929 * IPAddress.cs: Removed unused exception variable, fixes compiler
2931 * WebConnection.cs: Removed unused exception variables, fixes compiler
2934 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
2936 * NetConfig.cs: If Clone method is not public, then it must use
2937 explicit interface method implementation syntax.
2939 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
2941 * Dns.cs: Reworked indentation.
2943 Added literal address checking in GetHostByAddress.
2944 Changed Dns.Resolve behavior.
2946 * IPEndPoint.cs: Added IPv6 support.
2947 * IPv6Address.cs: Added address compression.
2948 * NetConfig.cs: Added configuration section.
2950 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
2952 * ServicePoint.cs: Removed Connect and GetEndPoint methods.
2953 Removed reverse resolution when uri is literal IP address.
2954 * WebConnection.cs: IPv6 compatibility update: Try to connect
2955 to all addresses returned by IPHostEntry.
2956 * WebConnectionGroup.cs: Removed unused parameter.
2958 2003-07-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2960 * WebProxy.cs: Add serialization/ deserialization support
2962 2003-07-10 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2965 * WebStatus.cs: Deleted (do not exist in this assembly)
2966 * IPv6Address.cs: Made internal
2968 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2970 * HttpWebRequest.cs:
2971 * ServicePointManager.cs:
2972 * WebConnection.cs: added support for proxies.
2974 2003-07-05 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2976 * DnsPermissionAttribute.cs:
2977 * SocketPermissionAttribute.cs: Fixed wrong AttributeUsageAttribute
2979 2003-07-05 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2981 * WebPermission.cs: Added and partially implemented
2982 * WebPermissionAttribute.cs: Added and implemented
2984 2003-07-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2986 * WebClient.cs: fixed bug #45651.
2988 2003-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2990 * WebClient.cs: Small fix by Sebastian <scut@nb.in-berlin.de>.
2992 2003-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2994 * WebConnection.cs: fixed header writing the reusing a connection and
2995 the server does not send 100-continue response.
2997 2003-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2999 * WebConnection.cs: close the socket and connection when disposing.
3000 * WebRequest.cs: removed setter for RequestUri. Allow non-public ctors
3001 when creating instances.
3003 * HttpWebRequest.cs:
3004 * HttpWebResponse.cs:
3005 * FileWebRequest.cs: support serialization.
3007 * FileWebResponse.cs: support serialization and fixed dispose checks.
3009 * FileWebRequestCreator.cs:
3010 * HttpRequestCreator.cs: added internal .ctor.
3012 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
3014 * HttpWebRequest.cs: SetWriteStream(): SendRequestHeaders should be
3015 called before asyncWrite.SetCompleted, to make sure that the waiting
3016 thread does not start to send more information before
3017 SendRequestHeaders has finished.
3019 2003-06-22 Lluis Sanchez Gual <lluis@ximian.com>
3021 * WebConnectionStream.cs: Only increment pendingReads if an asynchronous
3022 read is really needed.
3024 2003-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3026 * WebHeaderCollection.cs: prevent duplication headers used niternally.
3028 2003-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3030 * HttpWebRequest.cs: if CookieContainer has not been set, make
3031 HttpWebResponse ignore Set-Cookie* headers.
3033 * HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if
3034 CookieContainer have been provided to the request.
3036 2003-06-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3038 * AuthenticationManager.cs: get the list of authentication modules from
3039 the configuration files. Added Clear and fixed Unregister.
3041 * BasicClient.cs: fully implemented.
3043 * HttpWebRequest.cs: added support for Basic authentication when
3044 credentials are set.
3046 * NetworkCredential.cs: fixed GetCredential.
3048 2003-06-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3050 * HttpWebRequest.cs: *really* take care of requestSent to prevent
3051 sending the same request twice.
3052 * WebAsyncResult.cs: don't close the handle. Just Reset.
3053 * WebConnectionStream.cs: removed unneeded line.
3055 2003-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3057 * HttpWebRequest.cs: use InternalClose when we are not going to send the
3058 rest of the request stream because of an error after sending the
3061 * WebConnection.cs: check for completion after setting the response.
3062 Enable reading in NextRead.
3064 * WebConnectionStream.cs: re-fixed the count for partially buffered
3065 reads. If the network stream returns 0 bytes, we're done.
3067 2003-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3069 * WebClient.cs: implemented UploadFile. Fixed SetupRequest to set the
3070 special headers *after* the others.
3072 2003-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3074 * WebConnectionStream.cs: when the read is partially filled from the
3075 initial buffer, add those bytes too. Thanks to Lluis for debugging this.
3077 2003-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3079 * HttpWebRequest.cs: added ExpectContinue property.
3080 * WebConnection.cs: allow 100 Continue to be delayed after waiting for
3083 2003-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3085 * HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
3086 is known not to respond to that.
3088 * ServicePoint.cs: added SendContinue property.
3090 * WebConnection.cs: only wait 2 seconds for a continue reply. If it
3091 timeouts, set SendContinue to false and proceeed sending data.
3093 * WebConnectionStream.cs: if 100-continue is not received and instead we
3094 get a 417 or anything else, don't send the data.
3096 * WebClient.cs: implemented all missing properties and methods except
3099 2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3101 * FileWebRequestCreator.cs: splitted from WebRequest.
3102 * HttpRequestCreator.cs: splitted fromWebRequest.
3103 * WebRequest.cs: added methods that are used by the new configuration
3104 handler to set prefix/type name requests creators.
3106 2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3108 * AuthenticationManager.cs:
3110 * BasicClient.cs: new file.
3111 * ChunkStream.cs: new file.
3113 * CookieContainer.cs:
3114 * GlobalProxySelection.cs:
3115 * HttpWebRequest.cs:
3116 * HttpWebResponse.cs:
3117 * IAuthenticationModule.cs:
3119 * ServicePointManager.cs:
3120 * WebAsyncResult.cs: new file.
3121 * WebConnection.cs: new file.
3122 * WebConnectionData.cs: new file.
3123 * WebConnectionGroup.cs: new file.
3124 * WebConnectionStream.cs: new file.
3126 * WebHeaderCollection.cs:
3130 Reworked HttpWebRequest and related classes.
3132 2003-05-30 Miguel de Icaza <miguel@ximian.com>
3134 * HttpWebRequest.cs (EndGetResponse): Do not throw exceptions on
3135 InternalServerError (500)
3137 2003-05-29 Miguel de Icaza <miguel@ximian.com>
3139 * HttpWebRequest.cs (Close): Move the code that accumulates the
3140 output to Close from Flush. Flush could have been called in the
3141 middle of the processing, and would have generated invalid results
3144 2003-05-23 Zoltan Varga <vargaz@freemail.hu>
3146 * Dns.cs (GetHostByAddress): Return the local host when called with
3149 2003-04-29 Miguel de Icaza <miguel@ximian.com>
3151 * WebClient.cs (DownloadData): Close the underlyng stream.
3152 (DownloadFile): Use using, so the file gets closed.
3154 2003-04-24 Miguel de Icaza <miguel@ximian.com>
3156 * WebClient.cs (DownloadData): Instead of using a MemoryStream,
3157 keep track of all the small chunks in an ArrayList. The
3158 MemoryStream had the property of reallocating itself, and the
3159 problem was that MemoryStream.GetBuffer would return the buffer
3160 (correctly), but not something of the right size. So clients of
3161 DownloadData would get the extra unused bytes as part of the
3164 The solution would have been to make another copy at this point,
3165 instead, we only keep the small allocations around in the
3166 ArrayList, and we only do one large allocation at the end.
3168 * HttpWebResponse.cs: If there is a Content-Length header, pass
3169 this information to our HttpWebResponseStream, so it knows when to
3170 stop, instead of waiting for the stream to be shut down by the
3173 * HttpWebRequest.cs: Only set the `delay-header-writing' mode on
3174 the underlying stream if the method will do a content transfer and
3175 no Content-Length was provided. If not (HEAD and GET or
3176 Content-Length provided), keep going.
3178 2003-04-23 Miguel de Icaza <miguel@ximian.com>
3180 * HttpWebRequest.cs: .NET Allows the HttpWebRequest to not have
3181 the ContentLength specified on the request. If that happens, we
3182 have to accumulate all the data written, and once we accumulate
3183 the data, we send it off.
3185 Notice that the documentation in .NET is actually incorrect, they
3186 state that setting ContentLength is mandatory. It is not.
3188 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3190 * HttpWebResponse.cs: fixes bug #41180.
3192 2003-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3194 * HttpWebRequest.cs: throw an exception is the response code is >= 300.
3196 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3198 * HttpWebRequest.cs: implemented IDisposable, make the request stream
3199 read only. Changed the way of disposing the socket.
3201 * HttpWebResponse.cs: wrapped the socket in a write-only NetworkStream,
3202 handle chunked transfer encoding (no more hangs), added serialization
3203 stuff, call CheckDisposed at the beginning of methods/properties (not
3204 in a finally clause).
3206 2003-02-17 Nick Drochak <ndrochak@gol.com>
3208 * WebClient.cs : Implemented Credentials property.
3210 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3212 * SocketAddress.cs: byte 1 of the data is the high byte of the family,
3215 2003-01-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3217 * WebClient.cs : hacked OpenRead, DownloadData and DownloadFile.
3219 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3221 * HttpWebRequest.cs: applied patch from Tim Haynes
3222 (thaynes@openlinksw.com).
3224 Avoided double-sending of the request to the server when both
3225 GetRequestStream() and GetResponse() are called.
3226 System Header attributes survive the Headers attribute set.
3227 Added handling of Connection: KeepAlive/Close
3229 2002-10-03 Dick Porter <dick@ximian.com>
3231 * Dns.cs: Fixed GetHostName()
3233 2002-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3235 * HttpWebRequest.cs:
3236 * HttpWebResponse.cs: applied another patch from Shahms E. King
3237 (shahms@shahms.com).
3239 2002-09-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3241 * HttpWebRequest.cs:
3242 * HttpWebResponse.cs: applied patch from Shahms E. King
3243 (shahms@shahms.com).
3245 2002-05-29 Lawrence Pit <loz@cable.a2000.nl>
3247 * MonoHttpDate.cs: added
3248 * HttpWebRequest.cs: using MonoHttpDate
3249 * HttpWebResponse.cs: using MonoHttpDate
3250 * DnsPermission.cs: correct XML output
3251 * SocketPermission.cs: correct XML output
3253 2002-05-21 Lawrence Pit <loz@cable.a2000.nl>
3255 * WebClient.cs: stubbed
3256 * WebProxy.cs: fixed bug; had to change internal representation
3257 of bypasslist to ArrayList, different implementation of checking
3260 2002-05-20 Lawrence Pit <loz@cable.a2000.nl>
3262 * WebProxy.cs: added, implemented
3263 * ServicePoint.cs: implemented most
3264 * ServicePointManager.cs: implemented
3265 * HttpWebRequest.cs: started implementation
3266 * HttpWebResponse.cs: improved disposable routines
3267 * FileWebRequest.cs: slight improvement of Close method
3269 2002-05-19 Lawrence Pit <loz@cable.a2000.nl>
3271 * FileWebRequest.cs: finished implementation of async methods.
3272 * FileWebResponse.cs: improved disposable routines.
3273 * IPEndPoint.cs: fixed bug #24666 in Serialize and Create methods,
3274 byte ordering of address was backwards.
3276 2002-05-13 Lawrence Pit <loz@cable.a2000.nl>
3278 * Dns.cs: Reimplemented (simplified and fixed) asynchronous methods by
3279 relying on standard asynchronous delegate features. Added checks for
3281 * HttpWebResponse.cs: implemented properties
3282 * FileWebResponse.cs: improved the way resources are disposed.
3283 * FileWebRequest.cs: started implementation of asynchronous methods
3284 * ServicePointManager.cs: implemented properties
3286 2002-05-12 Lawrence Pit <loz@cable.a2000.nl>
3288 * HttpWebRequest.cs: properties implemented
3289 * HttpWebResponse.cs: added
3290 * GlobalProxySelection.cs: implemented
3291 * FileWebResponse.cs: added
3292 * FileWebRequest.cs: some methods implemented
3294 2002-05-11 Lawrence Pit <loz@cable.a2000.nl>
3296 * WebHeaderCollection.cs: implemented
3297 * WebRequest.cs: implemented
3298 * FileWebRequest.cs and HttpWebRequest.cs stubs added
3300 2002-05-09 Lawrence Pit <loz@cable.a2000.nl>
3302 * Rewrote IPAddress.Parse method, passing all unit tests
3304 2002-05-09 Lawrence Pit <loz@cable.a2000.nl>
3306 * fixed bug in IPEndPoint.Equals method
3307 * fixed bug in IPAddress.Parse method
3308 * fixed bug in IPAddress.SwapLong method
3309 * fixed several bugs in Cookie.cs
3311 2002-05-06 Lawrence Pit <loz@cable.a2000.nl>
3313 * WebRequest.cs: added
3314 * WebResponse.cs: implemented
3315 * WebException.cs: implemented
3316 * WebHeaderCollection.cs: added
3317 * HttpVersion.cs: implemented
3318 * HttpContinueDelegate.cs: added
3319 * IWebProxy.cs: added
3320 * IWebRequestCreate.cs: added
3321 * ICertificatePolicy.cs: added
3322 * ServicePoint.cs: stubbed
3323 * ServicePointManager.cs: stubbed
3324 * CookieContainer.cs: added
3325 * Authorization.cs: implemented
3327 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
3329 * CredentialCache.cs: implemented
3331 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
3333 * IPAddress.cs: fixed IsLoopback, address was already in host order
3335 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
3337 * IPv6Address.cs: added (note: not part of .net spec)
3339 2002-05-01 Lawrence Pit <loz@cable.a2000.nl>
3341 * DnsPermission.cs: implemented
3342 * DnsPermissionAttribute.cs: implemented
3344 2002-04-28 Lawrence Pit <loz@cable.a2000.nl>
3346 * EndpointPermission.cs: implemented
3347 * SocketPermission.cs: implemented
3348 * SocketPermissionAttribute.cs: implemented
3349 * ProtocolViolationException.cs: implemented
3350 * Dns.c: passing w32 error code when no host found
3352 2002-04-27 Lawrence Pit <loz@cable.a2000.nl>
3354 * Cookie.cs: implemented
3355 * CookieCollection.cs: implemented
3356 * CookieException.cs: implemented
3358 2002-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3360 * IPAddress.cs: initialize the read only fields with Parse().
3362 2002-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3364 * IPAddress.cs: little changes to behave as MS.
3366 2002-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3368 * Dns.cs (Resolve): behave as MS. Agreed with Mads.
3370 2002-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3372 * IPAddress.cs: the icalls for sockets are endianness-aware. So I
3373 changed a few things. Also included a workaround for bug #23547.
3375 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3377 * IPAddress.cs: use System.BitConverter.IsLittleEndian (suggested
3378 by Paolo) instead of guessing the endianness.
3380 * SocketAddress.cs: implemented Equals() and GetHashcode().
3382 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3384 * IPEndPoint.cs: modifications to constructors according to the
3385 specifications (suggested by Lawrence Pit).
3387 2002-04-15 Patrik Torstensson <patrik.torstensson@labs2.com>
3389 * IPEndPoint.cs: Fixed build breaker.
3391 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3393 * IPEndPoint.cs: implemented Equals() and GetHashCode(). Now 100%
3396 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3398 * IPAddress.cs: finished all MonoTODO's. Use network order to store
3399 the address. Check for max and min values in Address:set. IsLoopback()
3400 returns now true for all 127.x.y.z. Some more checks in Parse ().
3401 Some changes to behave as MS does.
3403 2002-02-24 Duncan Mak <duncan@ximian.com>
3405 * ICredentialLookup.cs: Added the GetCredential method to the
3406 interface. The interface is named "ICredentials", should this file
3409 * NetworkCredential.cs: Added to CVS. Need to investigate on how
3410 GetCredential() works
3412 2002-01-23 Dick Porter <dick@ximian.com>
3414 * SocketAddress.cs: Implemented.
3416 * IPEndPoint.cs: Turned 'Address' field into a real property.
3417 Implemented Create() and Serialize() methods.
3419 * IPAddress.cs: Fixed class constructor, turned 'Address' field
3420 into a real property. Removed undocumented "public
3421 IPAddress(string)" constructor.
3423 * EndPoint.cs: Implemented. All methods return
3424 NotSupportedException to enforce subclass overriding.
3426 * Dns.cs: Replaced fixed-layout Hostent struct and cygwin
3427 P/Invokes with portable internal calls.
3429 2002-01-17 Miguel de Icaza <miguel@ximian.com>
3431 * Dns.cs: Updated to API changes.
3433 * IPAddress.cs: Updated API. Much left to implement.
3435 * Dns.cs: Remove IPToString method
3437 2002-01-06 Ravi Pratap <ravi@ximian.com>
3439 * Dns.cs, AuthenticationManager.cs, SocketAddress.cs : MonoTODO
3440 attribute insertion.
3442 2001-11-22 Nick Drochak <ndrochak@gol.com>
3444 * IPAddress.cs: Fix constructor bug, properly name Address property,
3445 and use triple-slash for comments.
3447 2001-11-20 Miguel de Icaza <miguel@ximian.com>
3449 * IPAddress.cs: Updated to contain Any, Broadcast, Loopback and
3450 None as suggested by Phillip.
3452 2001-09-26 Mads Pultz <mpultz@get2net.dk>
3453 * Dns.cs: Initial work on BeginGetHostByName and EndGetHostByName implemented.
3455 2001-09-24 Mads Pultz <mpultz@get2net.dk>
3457 * Dns.cs: Minor changes (some print statements removed)
3459 2001-09-23 Mads Pultz <mpultz@get2net.dk>
3461 * Dns.cs: Initial work submitted to repository.
3462 * IPHostEntry.cs: Initial work submitted to repository.
3464 2001-07-12 Sean MacIsaac <macisaac@ximian.com>
3466 * Authorization.cs: Fixed compiler error.
3468 * IAuthenticationModule.cs: Changes for Beta2.
3470 * IPAddress.cs: Internal storage changed to be uint not int.
3472 * IPEndPoint.cs: Fixed compiler error.
3474 * EndPoint.cs: Fixed compiler error.
3476 * AuthenticationManager.cs: Fixed typo.