1 2010-06-29 Sebastien Pouliot <sebastien@ximian.com>
3 * ServicePointManager.cs: Remove NET_2_0 defines around
4 RemoteCertificateValidationCallback
6 2010-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
8 * IPAddress.cs: verify the last IPv4 digit too.
11 2010-06-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
13 * HttpWebRequest.cs: DELETE allows an entity body.
16 2010-06-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
18 * HttpWebRequest.cs: 307 does not change request method.
20 2010-06-11 Jonathan Chambers <joncham@gmail.com>
22 * HttpListenerRequest.cs: Assign default value to variable before using.
24 2010-05-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
27 * FtpWebRequest.cs: properly close the data connection even when
28 nothing is read from it. Refixes bug #598908.
30 2010-04-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
33 * FtpWebRequest.cs: use streams instead of sockets as soon as
34 possible. Correctly initialize the control connection when SSL
35 is used and protect the data connection by default.
38 2010-04-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
40 * ChunkStream.cs: ignore chunk extensions when reading the chunk
41 size. Fixes bug #597556.
43 2010-04-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
45 * HttpWebRequest.cs: set content length to -1 on redirect. Reset
46 'FinishedReading' on redirects. Fixes bug #593596.
48 2010-04-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
50 * ServicePointManager.cs: obtain the SubjectAltName extension the
51 right way. Fixes bug #594110.
53 2010-03-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
55 * HttpWebRequest.cs: when PreAuthenticate is true, don't remove the
56 existing authorization related headers until we know we have a
57 replacement. Fixes bug #591633.
59 2010-03-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
61 * ServicePointManager.cs: errors parsing the certificate don't prevent
62 calling the callback now. Exceptions thrown parsing the certificate
63 are printed to stderr in case they are library errors.
65 2010-03-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
67 * WebClient.cs: fix handling of query string, whether it comes from
68 the address used or is part of the QueryString.
70 2010-03-20 Miguel de Icaza <miguel@novell.com>
72 * WebConnection.cs: Drop pre-2.0 and pre-1.1 support, and remove
75 * WebClient.cs: Drop the pre-2.0 support
77 2010-03-19 Sebastien Pouliot <sebastien@ximian.com>
79 * AuthenticationManager.cs: Internal type for Moonlight.
80 Add BasicClient, DigestClient, NtlmClient for NET_2_1 since
81 this applies to both monotouch and moonlight (client stack).
82 Removed unneeded NET_2_0 defines
83 * CookieContainer.cs: For Moonlight it needs to be internal in
84 System.dll and public in System.Net.dll. Removed unneeded NET_2_0
86 * HttpContinueDelegate.cs: Internal type for Moonlight.
87 * HttpRequestCreator.cs: Remove a MOONLIGHT define
88 * HttpStatusCode.cs: For Moonlight it needs to be internal in
89 System.dll and public in System.Net.dll
90 * HttpWebRequest.cs: Internal type for Moonlight. Change S.Config
91 to NET_2_1 defines (applies to both monotouch and moonlight).
92 Removed unneeded NET_2_0 and NET_1_1 defines
93 * HttpWebResponse.cs: Internal type for Moonlight. Removed
94 unneeded NET_2_0 defines
95 * IAuthenticationModule.cs: Internal type for Moonlight.
96 * ICertificatePolicy.cs: Internal type for Moonlight.
97 * ICredentialPolicy.cs: Internal type for Moonlight. Removed
98 unneeded NET_2_0 defines
99 * IWebRequestCreate.cs: For Moonlight it needs to be internal in
100 System.dll and public in System.Net.dll
101 * ServicePoint.cs: Internal type for Moonlight. Change S.Config
102 to NET_2_1 defines (applies to both monotouch and moonlight)
103 * ServicePointManager.cs: Remove a MOONLIGHT define
104 * WebException.cs: For Moonlight it needs to be internal in
105 System.dll and public in System.Net.dll. Removed unneeded NET_2_0
107 * WebHeaderCollection.cs: Internal type for Moonlight. Removed
108 unneeded NET_2_0 defines
109 * WebRequest.cs: Internal type for Moonlight. Change S.Config
110 to NET_2_1 defines (applies to both monotouch and moonlight)
111 * WebResponse.cs: Internal type for Moonlight. Removed unneeded
114 2010-03-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
117 * FtpWebRequest.cs: for non-data operations, make sure we send the
118 QUIT command upon completion when KeepAlive is false.
121 2010-03-16 Jb Evain <jbevain@novell.com>
123 * Dns.cs, HttpRequestCreator.cs, ServicePoint.cs: use MOONLIGHT
124 symbol to disambiguate MonoTouch and Moonlight code.
126 2010-03-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
128 * ServicePointManager.cs: perform the entire chain validation here.
130 2010-03-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
132 * HttpConnection.cs: set the right position when a CR is found.
135 2010-03-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
138 * HttpListenerRequest.cs:
139 * ListenerAsyncResult.cs:
140 * HttpConnection.cs: make sure there is no pending input when reusing
143 2010-03-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
145 * HttpListenerContext.cs: split the auth header in 2 parts.
146 * HttpListener.cs: backported SelectAuthenticationScheme and
147 added new InternalEndGetContext used for connections that require
149 * ListenerAsyncResult.cs: allow this object to be just a forwarder
150 when nesting connections for authentication purposes.
153 2010-03-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
155 * WebClient.cs: fix for UploadStringAsync(). Closes bug #577818.
158 2010-03-04 Atsushi Enomoto <atsushi@ximian.com>
160 * HttpListenerContext.cs : WWW-Authenticate header should not be
163 2010-03-04 Atsushi Enomoto <atsushi@ximian.com>
165 * HttpListenerContext.cs : The header line here is already trimmed
166 "Authorization:" , so do not try to remove it.
168 2010-03-04 Atsushi Enomoto <atsushi@ximian.com>
170 * HttpListener.cs, ListenerAsyncResult.cs : fix authentication
171 scheme selection mismatch.
173 2010-03-03 Atsushi Enomoto <atsushi@ximian.com>
175 * HttpListenerContext.cs, HttpListener.cs :
176 support AuthenticationSchemeSelectorDelegate.
178 2010-03-01 Miguel de Icaza <miguel@novell.com>
180 * WebHeaderCollection.cs: Apply 2 year old patch from Yves Bastide
181 that fixes the keys casing in the collection; Fixes 325491
183 2010-03-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
185 * WebConnection.cs: attach a validation callback to the new
186 event in Mono.Security.
187 * ServicePointManager.cs: added a new ValidationHelper
188 class that takes care of building the certificate chain and perform
189 all the check that were done in Mono.Security before. This way the 2.0
190 server certificate validation callback can get all the data it needs.
194 2010-01-29 Mike Kestner <mkestner@novell.com>
196 * HttpUtility.cs: port more of the methods from System.Web file.
197 * WebUtility.cs: new 4.0 class.
199 2010-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
201 * IPEndPoint.cs: When throwing an ArgumentException in Create()
202 because of a mismatch in the address family, use a more informative
203 message. Patch by Juho Vaha-Herttu<juhovh@iki.fi>.
206 2010-01-21 Sebastien Pouliot <sebastien@ximian.com>
208 * CookieContainer.cs: Fix to cloning and expiration. Patch
209 by Tom Philpot <tom.philpot@logos.com>
211 2010-01-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
213 * HttpWebRequest.cs: when the server returns several different
214 authentication methods, pick the one that works.
217 2010-01-12 Sebastien Pouliot <sebastien@ximian.com>
219 * NetworkCredential.cs: Fix properties to never return null.
221 2009-12-24 Sebastien Pouliot <sebastien@ximian.com>
223 * Cookie.cs: Re-work ToString to be useable in more cases. Fix
224 some issues found by Gendarme.
225 * CookieContainer.cs: Fix all NonWorking (and new) unit tests.
226 Implement removing oldest cookies when limits are reached.
227 * CookieCollection.cs: Move to generics internally. Fix sort to
228 be closer to MS implementation (but still not 100% identical).
229 Fix some issues found by Gendarme.
231 2009-12-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
233 * WebConnectionGroup.cs:
234 * ServicePoint.cs: implemented CloseConnectionGroup().
236 2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
238 * System.Net/DnsEndPoint.cs: Moved from System.Net (where the
239 type resides in Moonlight) so it's available for 4.0
241 2009-11-30 Sebastien Pouliot <sebastien@ximian.com>
243 * CookieCollection.cs: Seal inner CookieCollectionPathComparer
244 * IPAddress.cs: Avoid multiple casts in Equals
245 * SocketAddress.cs: Avoid multiple casts in Equals
246 [Found using Gendarme]
248 2009-10-23 Alexandre Gomes <alexmipego@gmail.com>
250 * WebClient.cs: Fixed GetWebRequest overriding problems, bug:
251 https://bugzilla.novell.com/show_bug.cgi?id=549580
253 2009-10-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
255 * WebConnectionStream.cs: add 3 missing DoCallback() calls in
258 2009-09-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
260 * EndPointListener.cs: fix matching a listener in presence of a query
263 2009-09-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
265 * HttpListenerRequest.cs: add the right status code.
266 * HttpConnection.cs: exception might come from more places when
267 reading the input. Catch all of them.
269 2009-09-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
271 * WebRequest.cs: handle upper and lowercase HTTP_PROXY and the Any
272 address. Fixes bug #537283.
274 2009-09-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
276 * WebConnection.cs: if the request has already finished reading, don't
277 throw ObjectDisposedException here, just return as if nothing
278 happened. Fixes bug #312968.
280 2009-08-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
282 * WebConnection.cs: HEAD response does not have a body even if the
283 response is an error. Fixes buf #535102.
285 2009-08-17 Geoff Norton <gnorton@novell.com>
287 * NtlmClient.cs: Mono.Http does not exist on monotouch
289 2009-08-17 Sebastien Pouliot <sebastien@ximian.com>
291 * CookieCollection.cs: Seal class for NET_2_1 (SL3)
292 * CookieContainer.cs: Seal class for NET_2_1 (SL3)
293 * NetworkCredential.cs: Use in NET_2_1 (SL3) but without implementing
296 2009-08-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
299 * WebConnectionStream.cs: if there's an error writing the headers from
300 a buffered request, propagate the error instead of hiding it and
301 causing a different one later (ie, ObjectDisposedException instead of
302 the original WebException). This happened when posting without
303 Content-Length set to an HTTPS url without validating the server
306 2009-07-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
308 * WebClient.cs: rethrow WebExceptions instead of creating a new one
309 with less information on the actual error.
312 2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
314 * WebHeaderCollection.cs: check the validity of the characters in the
317 2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
319 * WebHeaderCollection.cs: implemente the 2.0 IsRestricted().
321 2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
323 * WebConnectionStream.cs: when sending a 0-length POST, ignore further
324 writes instead of throwing.
327 2009-07-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
329 * WebClient.cs: implement GetWebRequest and GetWebResponse. Use them
330 instead of SetupRequest and ProcessResponse.
332 2009-07-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
334 * WebClient.cs: set the content length when uploading values. This
335 allows reusing the connection.
336 * WebConnectionStream.cs: SetHeaders() takes ownership of the buffer
337 and does not need to copy it any more. WriteRequest() wasn't always
338 setting 'requestWritten' to true.
339 * HttpWebRequest.cs: change in SetHeaders call.
341 2009-07-06 Gert Driesen <drieseng@users.sourceforge.net>
343 * WebConnectionStream.cs: Move and improve argument checks to match MS.
344 Modified CanRead and CanWrite to return false when instance is disposed.
346 2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
348 * WebConnection.cs: provide better error message when there's an error
350 * WebConnectionStream.cs: don't nullify the buffer until
351 CheckFinalStatus() decides that there are no more authentication
352 retries or redirects.
354 2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
356 * ServicePointManager.cs: implement ServerCertificateValidationCallback.
357 * DefaultCertificatePolicy.cs: if there's a SCVC registered, don't do
358 normal error checking.a
360 2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
362 * HttpWebRequest.cs: avoid duplicating Accept-Encoding if GetHeaders()
364 * WebConnectionStream.cs: don't send a 0 content length for non-write
367 2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
369 * WebConnection.cs: must use the 'int' version in 1.1.
371 2009-07-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
374 * ServicePoint.cs: UseNagleAlgorithm determines NoDelay value.
376 2009-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
378 * HttpWebRequest.cs: fix 1.1 only test.
380 2009-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
382 * WebConnectionStream.cs: when buffering the response, we have to set
383 the internal length and regenerate the headers.
385 2009-06-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
387 * HttpWebRequest.cs: don't send Content-Length header when SendChunked
389 * WebConnectionStream.cs: send the headers immediately when possible.
390 When writing the request before a Close(), if there was an exception
393 2009-06-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
396 * HttpListenerResponse.cs: force closing the socket when the response
399 2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
401 * WebAsyncResult.cs: new field that tells us if the request is being
402 written automatically because we reached the content length.
404 * WebConnectionStream.cs: make sure we only access the NetworkStream
405 while we own it. Automatically write the request when we reach
406 ContentLength number of bytes. Kill the write buffer as soon as
407 possible. Don't use the buffer at all when chunked encoding is
410 Fixes bugs #515931 and #510642.
412 2009-06-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
414 * WebConnection.cs: 'socket' and 'Data' where being changed by 2
415 threads at the same time when there were queued requests and the
416 current one was aborted in Connect().
417 * HttpWebRequest.cs: 'aborted' is now an int and we use Interlocked to
418 access it. Added WebConnection field used when aborting the request.
420 Fixes bug #514591 for good.
422 2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
424 * HttpWebRequest.cs: check for an aborted request in Begin* before
425 proceeding. Fixes bug #511851.
427 2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
429 * WebConnectionStream.cs: close the underlying socket if there's an
430 exception when closing the stream. Fixes bug #514996.
432 2009-06-20 Gert Driesen <drieseng@users.sourceforge.net>
434 * WebConnectionStream.cs: Keep count of all bytes written, and perform
435 write overflow check in both buffered and non-buffered writing (if
436 not using chunked transfer encoding). Fixes bug #510642.
438 2009-06-20 Gert Driesen <drieseng@users.sourceforge.net>
440 * WebClient.cs: Use lowercase hex bytes to match MS. Avoid using
441 zero-length string literal. Fixed exception argument name to match
443 * WebConnectionStream.cs: Throw a WebException that wraps an
444 IOException when closing the stream before all bytes are written.
446 2009-06-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
448 * WebConnection.cs: make sure we don't open a new socket if the
449 request is aborted before we establish the connection. Fixes bug
452 * HttpWebRequest.cs: new property to return abort status. Invoke the
453 abort handler before doing anything else when Abort() is called for
456 2009-06-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
458 * EndPointListener.cs: call CheckIfRemove() after removing a regular
459 prefix. Fixes bug #513849.
460 * EndPointManager.cs: make sure we use the right lock when one prefix
461 of a collection fails to be added and we need to remove all of the
463 Clear the ip_to_endpoints hashtable if there are no more prefixes
464 listening on that address.
466 2009-06-16 Andres G. Aragoneses <aaragoneses@novell.com>
468 * WebConnection.cs: propagate the exception to the request.
469 * WebException.cs: new internal ctor.
470 * HttpWebRequest.cs: use new ctor to encapsulate the innerException.
473 2009-06-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
475 * HttpWebRequest.cs: for unknown methods, always send the request once
476 we are connected even if there's no writeStream. Fixes bug #513087.
478 2009-06-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
480 * HttpWebRequest.cs: ProtocolViolationException is not thrown in
481 certain cases since 2.0. Fixes bug #508027.
483 2009-06-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
485 * HttpWebRequest.cs: follow MS docs when throwing
486 ProtocolViolationException at the beginning of an asynchronous
487 operation. Fixes bug #465613.
489 2009-06-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
491 * WebConnectionStream.cs: throw a WebException instead of an IOException.
493 2009-06-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
495 * FtpWebRequest.cs: avoid exception when the reply from the server
496 contains just response code. Fixes bug #510852.
498 2009-06-05 Sebastien Pouliot <sebastien@ximian.com>
500 * DownloadStringCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
501 * OpenReadCompletedEventArgs.cs: Remove Address property since it's
502 not part of SL2. Call RaiseExceptionIfNecessary
503 * OpenWriteCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
504 * UploadStringCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
506 2009-06-05 Robert Jordan <robertj@gmx.net>
508 * WebClient.cs (UploadValuesCore): Encode POST arguments with UTF-8.
511 2009-06-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
513 * HttpWebRequest.cs: KeepAlive check not needed.
516 2009-06-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
518 * HttpConnection.cs: unbind the context after every read for keep-alive
522 2009-05-17 Gert Driesen <drieseng@users.sourceforge.net>
524 * CookieContainer.cs: Provide meaningful information in exception
525 messages, and improve compatibility with MS. Modified set_Capacity to
526 no longer change MaxCookieSize when new value is less than
529 2009-05-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
531 * HttpWebResponse.cs:
532 * HttpWebRequest.cs: support automatic decompression of the response.
536 2009-05-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
538 * Dns.cs: made GetHostAddresses and friends internal for 1.x
539 * EndpointPermission.cs: use GetHostAddresses.
541 2009-05-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
543 * CookieContainer.cs: matching hosts to domain names like MS does.
546 2009-05-02 Atsushi Enomoto <atsushi@ximian.com>
548 * CredentialCache.cs : implement all not-implemented methods.
549 Patch by Mineda Nozomi. Close bug #499556.
551 2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
553 * EndPoint.cs: Throw NotImplementedException instead of
554 NotSupportedException
555 * IPEndPoint.cs: Fix some validations.
557 2009-04-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
560 * HttpWebRequest.cs: provide more information on why the connection
561 could not be established.
563 2009-04-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
565 * FtpWebRequest.cs: send REST after PASV to avoid some servers
566 forgetting aboout it.
569 2009-03-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
571 * FtpWebRequest.cs: we were sending CWD instead of PWD.
574 2009-03-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
576 * IPAddress.cs: don't allocate the IPv6 array for IPv4 addresses.
578 2009-02-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
580 * WebClient.cs: append the QueryString in DownloadData.
583 2009-02-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
585 * FtpWebResponse.cs: return a Null stream when there's no response to
587 * FtpWebRequest.cs: provide the error returned by the server in the
589 * WebClient.cs: set the correct method when doing a FTP upload.
592 2009-02-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
594 * FtpWebRequest.cs: avoid errors when creating a temporary Uri to get
596 * WebClient.cs: when setting up the request for downloading, use the
597 default method. Fixes bug #477611.
599 2009-02-16 Atsushi Enomoto <atsushi@ximian.com>
601 * WebConnectionStream.cs : use request only after it is set.
603 2009-02-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
605 * WebConnectionStream.cs: implemente (Read|Write)Timeout.
608 2009-02-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
610 * CookieContainer.cs: separate cookies with "; " instead of just ';'.
613 2009-02-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
615 * HttpWebRequest.cs: lock SetResponseError.
617 2009-02-08 Gert Driesen <drieseng@users.sourceforge.net>
619 * Dns.cs: BeginGetHostAddresses - renamed argument to match MS,
620 reject "any" IP addresses. BeginGetHostEntry - renamed argument
621 to match MS, reject "any" IP addresses. GetHostEntry - reject
622 "any" IP addresses. GetHostAddresses - reject "any" IP addresses.
623 GetHostByName - use "hostName" as paramname in ANE.
625 2009-02-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
627 * Dns.cs: empty string for host (also 0.0.0.0) is just passed to the
628 runtime, which will then retrieve the local IP addresses. Fixes bug
631 2009-02-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
633 * FtpWebRequest.cs: some servers have a comment after the directory
634 name. Fixes bugs #471149 and #471216.
636 2009-02-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
638 * WebConnectionStream.cs: set the content length to 0 when the
639 response is not supposed to have any content.
641 2009-02-05 Miguel de Icaza <miguel@novell.com>
643 * WebConnectionStream.cs: Prevent a nullref here. This might
644 have to be backported to 2.2 and 2.4
646 2009-02-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
649 * HttpWebRequest.cs: calling Abort is safe now if the request has been
652 2009-02-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
654 * WebProxy.cs: use TryParse when checking for a localhost IP.
656 2009-01-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
658 * HttpWebResponse.cs: avoid throwing an exception when
659 Content-Length is not present.
661 2009-01-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
663 * HttpWebRequest.cs: added locking in SetResponseData for the case
664 when we get an error response before BeginGetResponse has been
667 2009-01-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
669 * IPAddress.cs: handle sign extension for the high byte when using the
670 byte[] ctor for an IPv4 address.
673 2009-01-19 Marek Habersack <mhabersack@novell.com>
675 * HttpWebRequest.cs: implemented the UseDefaultCredentials
676 property, patch from Florian Maetschke <f.maetschke@tu-bs.de>,
679 2009-01-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
681 * FtpWebRequest.cs: adjust to the correct directory when listing too.
684 2009-01-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
686 * HttpListenerRequest.cs: always initialize 'version'.
687 * HttpConnection.cs: the socket might already be disconnected when
690 2009-01-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
692 * WebConnectionStream.cs: if the buffer has been killed, return -1 for
693 its length. Fixes regression in System.Runtime.Remoting.
695 2009-01-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
697 * HttpWebRequest.cs: create a result from the response when
698 *GetResponse() has not been called yet and we have already received
702 2009-01-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
704 * HttpWebRequest.cs: keepAlive is of no use here.
707 2009-01-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
709 * HttpConnection.cs: we were not writing the headers for 0-length
711 * WebConnectionStream.cs: for 204/304 responses with an explicit
712 content-length of 0, release the socket only once.
715 2009-01-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
717 * FtpWebRequest.cs: now deleting a file works when we're not in the
720 2008-12-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
722 * IPAddress.cs: avoid throwing when parsing a subnet.
724 2008-11-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
726 * HttpConnection.cs: remove CWL. When reusing, BeginReadRequest might
727 throw if the client closes.
728 * HttpListenerResponse.cs: close the connection for 1.0 clients.
730 2008-11-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
732 * FtpDataStream.cs: use the socket for reading until the end of a
733 stream that wasn't read entirely. Remove unused ManualResetEvent.
734 * FtpWebRequest.cs: set the file_name when downloading. Update the
735 response status after every SendCommand. Send a "OPTS utf8 on" as MS
736 does (the control cnc reader should do something with UTF8)
738 2008-11-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
740 * WebRequest.cs: if the cache level is NoCacheNoStore, don't throw
741 when setting the CachePolicy.
743 2008-11-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
745 * FtpWebRequest.cs: take the server current directory into account
746 when uploading files. Set the data connection type before every
750 2008-10-31 Gonzalo Paniagua Javier <gonzalo@novell.com>
752 * FtpWebRequest.cs: disable keep-alive connections as the current code
753 does not deal with keep-alive connections.
754 Workaround for bug #380262.
756 2008-10-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
758 * WebConnectionStream.cs: when there's a NTLM authentication in
759 progress, don't let the connection be used by the next request if we
760 have the entire response in the input buffer.
762 2008-10-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
764 * HttpListenerResponse.cs: removed obsolete comment.
765 * ResponseStream.cs: don't read response.SendChunked until after
766 getting the response headers.
768 2008-10-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
770 * ServicePointManager.cs: set the default limit of connections from
771 the configuration file(s) on startup.
774 2008-10-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
776 * HttpWebRequest.cs: don't call ProxyRequest twice.
777 * WebConnectionData.cs: remove unused fields.
780 * WebConnectionStream.cs: when setting the input buffer, check to see
781 if the entire response is already there and free up the request slot.
785 * HttpListenerResponse.cs: buffer the headers so that they are sent
786 together with the data on the first Write (if any). The fix above
787 didn't work with our HttpListener without this.
789 2008-10-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
793 * WebConnectionGroup.cs:
795 * WebConnectionStream.cs: reuse the same connection when doing NTLM
796 authentication. Fixes bug #323375.
797 Implemented support for UnsafeAuthenticatedConnectionSharing.
799 2008-10-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
802 * HttpListenerResponse.cs: fix typo that caused the "connection close"
803 header to be sent. Do not close the socket when the encoding is not
804 chunked and reuse is possible.
807 2008-10-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
809 * HttpWebRequest.cs: if GetRequestStream has already been called,
810 return the same stream that we returned in the first call.
813 2008-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
815 * ServicePointManager.cs: better handling of possible collisions of the
816 hash for schema/host/port. Fixes bug #417891.
818 2008-10-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
820 * ChunkStream.cs: (ReadTrailer) make sure the array access is not out
821 of bounds. Fixes bug #322715.
823 2008-09-19 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
825 * WebConnectionStream.cs: when receiving a 0 content-length, free up
826 the slot for the next request immediately.
829 2008-09-16 Miguel de Icaza <miguel@novell.com>
831 * IPv6Address.cs: On the 2.0 profile, avoid throwing/catching
832 exceptions inside TryParse.
834 2008-09-12 Miguel de Icaza <miguel@novell.com>
836 * HttpListenerPrefixCollection.cs, EndPointListener.cs,
837 HttpListener.cs, EndPointManager.cs, HttpConnection.cs: Remove
838 generics support where necessary to allow this code to be reused
841 2008-09-08 Miguel de Icaza <miguel@novell.com>
843 * EndPointListener.cs (SearchListener): Cope with the raw_url not
844 being merely a path, but potentially a full URI (see the proxy
847 * HttpListenerRequest.cs: Cope with raw_url not being merely a
848 path, but potentially a full Uri. Also uses TryCreate, hoping
849 that one day it will be faster.
851 2008-08-23 Zoltan Varga <vargaz@gmail.com>
853 * WebConnectionStream.cs (WriteRequest): Fix the copying in the
854 previous patch, when bytes.Length != length.
856 2008-08-22 Zoltan Varga <vargaz@gmail.com>
858 * WebConnectionStream.cs (WriteRequest): For small requests,
859 cluster together the header + body in a single write call, avoids
860 the latency problems observed in an TLS application that makes
861 many web service calls.
863 2008-08-22 Geoff Norton <gnorton@novell.com>
865 * WebConnection.cs: Set NoDelay
867 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
869 * OpenReadCompletedEventArgs.cs: new Address property for 2.1
871 2008-08-06 Miguel de Icaza <miguel@novell.com>
873 * IPAddress.cs (ParseIPV6): Use an exception-less parser for ipv6
876 * IPv6Address.cs: Rewrite most of the parsing code to not use that
877 incredibly fragile, hacky and hacky implementation.
879 (TryParse): Provide a exception-less parsing path.
881 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>μ
883 2008-08-06 Atsushi Enomoto <atsushi@ximian.com>
885 * IPAddress.cs : several IPv4 parsing fix exposed by bug #411920.
887 2008-08-05 Atsushi Enomoto <atsushi@ximian.com>
889 * WebClient.cs : it should not invoke delegate directly, but should
890 call overridable OnDownloadProgressChanged.
892 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>μ
894 * HttpWebResponse.cs: Initialize contentLength in ctor, as it must
895 remain accessible after the response is disposed (and the headers are
896 no longer available). Adding missing disposed checks in properties
897 (except for StatusCode) and GetResponseHeader. On the 2.0 profile,
898 headers must remain accessible after the HttpWebResponse is disposed.
900 2008-06-10 Stephane Delcroix <sdelcroix@novell.com>
902 * IPAddress.cs: allow usage on 2.1 as smcs knows nothing about
903 string.GetEnumerator : IEnumerable<char>
905 2008-06-08 Miguel de Icaza <miguel@novell.com>
907 * ResponseStream.cs: Do not Close the HttpResponse object here as
908 it is possible to issue multiple OutputStream.Close calls (they
909 actually happen implicitly through things like StreamWriter.Close,
910 and they are in various MSDN samples).
912 2008-05-28 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
914 * CookieContainer.cs: apply slightly modified patch from rulatir@wp.pl
915 that fixes bug #356537.
917 2008-04-30 Miguel de Icaza <miguel@novell.com>
919 * WebPermission.cs (ToXml): To allow code that uses WebPermission
922 2008-04-21 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
924 * HttpWebResponse.cs: do not check the disposed status for properties
925 and methods that return response data other than the stream itself.
928 2008-04-16 Marek Habersack <mhabersack@novell.com>
930 * HttpWebRequest.cs: fix an off-by-one bug - the number of
931 redirects must not exceed the value of
932 MaximumAutomaticRedirections. Fixes bug #380131
934 2008-04-13 Jb Evain <jbevain@novell.com>
936 * *_2_1.cs: move the specific 2.1 System.Net code to the
939 2008-04-13 Jb Evain <jbevain@novell.com>
941 * WebRequest_2_1.cs, WebResponse_2_1.cs: new files
942 * HttpWebRequest_2_1.cs, HttpWebResponse_2_1, WebHeaderCollection_2_1:
943 update to Silverlight 2.0b1 API.
944 Merged from the Moonlight 2 branch.
946 2008-04-06 <gnorton@novell.com>
948 * ListenerAsyncContext.cs: Fix Basic authentication support. Patch from
949 Maciej Paszta <paszczi@go2.pl>
951 2008-02-21 Zoltan Varga <vargaz@gmail.com>
953 * HttpConnection.cs (Close): Close the socket even if Shutdown throws an exception.
955 2008-02-17 Daniel Nauck <dna@mono-project.de>
957 * HttpWebResponse.cs: refactored cookie expires parsing to
958 allow all common expires datetime formats.
960 2008-02-09 Daniel Nauck <dna@mono-project.de>
962 * HttpWebResponse.cs: convert UTC/GMT Expires DateTime from a cookie
963 into local time, also set the HttpOnly property if available.
965 2008-02-09 Daniel Nauck <dna@mono-project.de>
967 * Cookie.cs: implemented HttpOnly
969 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
971 * IPAddress.cs (Parse): Changed argument name to match MS.
972 (TryParse): Changed argument name to match MS.
973 (ParseIPV4): Only treat zero-length or " " address as empty on 1.0
974 profile. On 2.0 profile, only ignore characters after blank if last
975 part is valid hex string.
976 * IPv6Address.cs: Removed extra spaces and tabs.
978 2008-01-26 Daniel Nauck <dna@mono-project.de>
980 * HttpWebRequest.cs: fixed typo. Use the actual uri for correct
981 cookie header informations and not the originally one.
983 2008-01-26 Daniel Nauck <dna@mono-project.de>
985 * Cookie.cs: set Version to '1' if Port is set,
986 don't include path and domain informations when version is 0,
987 match ToString () output with .NET 2.0,
990 2008-01-15 Atsushi Enomoto <atsushi@ximian.com>
992 * MonoHttpDate.cs : Parse() should return Local time. Fixed bug
995 2008-01-12 Gert Driesen <drieseng@users.sourceforge.net>
997 * WebClient.cs: Do not add trailing CRLF in UploadValuesCore. Fixes
998 standalone test for bug #351049.
1000 2008-01-07 Sebastien Pouliot <sebastien@ximian.com>
1002 * CredentialCache.cs: Gendarme's AvoidToStringOnStringsRule in
1003 CredentialCacheKey constructor. UseStringEmptyRule on CredentialCache
1004 static ctor (3 times).
1006 2007-12-27 Miguel de Icaza <miguel@novell.com>
1008 * WebClient.cs: We catch exceptions that happen on the helper
1009 async threads toa void terminating the application on errors, and
1010 also raise a variant of the OnXXXXCompleted methods that take an
1013 Note that this differs from the .NET implementation in that
1014 we actually raise a signal on error, and set the exception, and in
1015 their case no error is ever raised.
1017 We now call CompleteAsync in the OnXXXCompleted handlers to ensure
1018 that the WebClient can be reused immediately by the callback.
1022 This also should fix the bug report on IRC where someone
1023 complained that they could not "chain" invocations to XXXAsync
1024 methods from the OnXXXXCompleted handlers due to the WebClient
1025 refusing to work if there was an ongoing operation
1027 2007-12-24 Miguel de Icaza <miguel@novell.com>
1029 * WebClient.cs: Do not validate method to be null, we do not do
1030 that in OpenWrite, the detection is done later on.
1034 2007-12-16 Miguel de Icaza <miguel@novell.com>
1036 * WebClient.cs: Got the arguments in the wrong order, fix
1038 2007-12-12 Marek Habersack <mhabersack@novell.com>
1040 * WebClient.cs: DownloadProgressChanged is available only in the
1043 2007-12-12 Miguel de Icaza <miguel@novell.com>
1045 * WebClient.cs (DownloadFileCore): use longs for the
1046 ContentLength, although the other code (loading into a byte array,
1047 or a string) still uses ints, the DownloadFileCore should not.
1049 2007-12-11 Miguel de Icaza <miguel@novell.com>
1053 Lots of fixes to get the *Async methods to work.
1055 * WebClient.cs: async, new boolean flag, used to track whether we
1056 are an async invocation, and if so, we need to invoke some
1059 Switch to using System.Threading.Thread instead of the ThreadPool
1060 as there is no way with the ThreadPool to abort threads (to
1061 implemente CancelAsync).
1063 (CompleteAsync): Helper method used to clear the state after an
1064 async operation completes, otherwise the WebClient can only be
1067 (CancelAsync): Use Thread.Interrupt to signal the thread that we
1068 are aborting it (it is a lot milder than Thread.Abort, and we are
1069 in no rush to cancel this anyways); Also the documentation states
1070 that we need to call the WebRequest.Abort method, so we do that in
1071 every Download instance.
1073 (DownloadDataAsync, DownloadFileAsync, DownloadStringAsync,
1074 OpenReadAsync, OpenWriteAsync, UplaodDataAsync, UploadFileAsync,
1075 UploadStringAsync): Make signature parameters match MS; use
1076 threads instead of threadpool (so we can implement CancelAsync),
1077 catch ThreadAbortException here so we can also raise the proper
1078 DownloadDataCompleteEventArgs.
1080 These routines will also call the WebRequest.Abort when
1081 appropriate when ThreadInterrupted is used.
1083 (ReadAll): Raise DownloadProgressChanged events.
1085 2007-12-03 Gert Driesen <drieseng@users.sourceforge.net>
1087 * WebClient.cs: Modified argument checks to match MS, and wrap
1088 exceptions in a WebException. Fixes bug #343064.
1090 2007-12-03 Miguel de Icaza <miguel@novell.com>
1092 * FtpWebRequest.cs: Applied patch from Jerome Haltom that fixes
1093 multi-line responses (after my fix).
1097 2007-11-16 Marek Habersack <mhabersack@novell.com>
1099 * HttpWebRequest.cs: when folding a request into a GET one, set
1100 content length to 0 and kill the buffers. Fixes bug #327314. Patch
1101 from Geoff Norton <gnorton@novell.com>, thanks!
1103 2007-11-13 Atsushi Enomoto <atsushi@ximian.com>
1105 * WebRequest.cs : added missing ImpersonationLevel (NIE).
1106 * SecurityProtocolType.cs : not [Serializable] in 2.0.
1107 * ServicePoint.cs : no GetHashCode() in 2.0.
1108 * WebRequestMethods.cs : fixed wrong STOU.
1109 * FileWebResponse.cs : no Dispose(true) in 2.0 API.
1111 2007-11-08 Jb Evain <jbevain@novell.com>
1113 * WebHeaderCollection_2_1.cs: add a custom WebHeaderCollection
1114 for the 2.1 profile.
1116 2007-11-07 Geoff Norton <gnorton@novell.com>
1118 * ListenerAsyncResult.cs: Only send the 401 header if our authentication
1119 type is Basic or Negotiate (which we default to basic) because that is
1120 all we support. Set the WWW-Authenticate header when we return a 401
1121 result. Send the correct state object in the async result.
1123 2007-11-06 Geoff Norton <gnorton@novell.com>
1125 * ListenerAsyncResult.cs: If the HttpListener has an authentication
1126 scheme, the user should be presented with a 401 without calling the
1129 2007-11-04 Miguel de Icaza <miguel@novell.com>
1131 * FtpWebRequest.cs (GetResponseStatus): Fix this routine
1132 propertly, refactor, and make it follow Mono coding conventions.
1134 2007-10-30 Jerome Haltom (wasabi@larvalstage.net)
1136 * FtpWebRequest.cs: adds support for ftp multiline results, fixes
1139 2007-10-27 Miguel de Icaza <miguel@novell.com>
1141 * HttpListener.cs: Remove more trigger-happy disposed=true from
1142 the code; We should only dispose when the Dispose method is
1143 actually called. Not before.
1147 * HttpListener.cs (Close): Closing does not mean dispose the
1148 object. This allows Start/Stop/Start to be called as many times
1153 2007-10-15 Gert Driesen <drieseng@users.sourceforge.net>
1155 * FtpWebRequest.cs: Added support for DELETE.
1157 2007-10-15 Gert Driesen <drieseng@users.sourceforge.net>
1159 * WebRequest.cs: Changed serialization ctor to throw NIE on 1.0
1160 profile. Cache default proxy, but still allow it to be explicitly set
1161 to null. Removed commented code.
1163 2007-10-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
1165 * WebRequest.cs: DefaultWebProxy allows a null value. Fixes bug #323668.
1167 2007-09-30 Gert Driesen <drieseng@users.sourceforge.net>
1169 * HttpListenerRequest.cs: Do not store 'method' in upper case, but
1170 instead use case-insensitive comparison.
1172 2007-09-30 Gert Driesen <drieseng@users.sourceforge.net>
1174 * HttpListenerRequest.cs: Removed dead code. USe String.Length to
1175 check for zero-length string. Use instance field for is_chunked, and
1176 also set it for GET/HEAD/DELETE. Fixed HasEntityBody to return true
1177 when Content-Length > 0, or Transfer-Encoding is chunked.
1179 2007-09-28 Marek Habersack <mhabersack@novell.com>
1181 * HttpListenerRequest.cs: make sure 'method' is always stored in
1183 The DELETE method must not error out on missing Content-Length
1184 header (this is the behavior of the MS.NET version of the
1185 class). Fixes bug #323215.
1186 HasEntityBody should return false when method is GET/HEAD,
1187 content_length is less than or equal to zero or the request is
1188 chunked. Fixes bug #325296
1190 2007-08-29 Atsushi Enomoto <atsushi@ximian.com>
1192 * IPAddress.cs, IPv6Address.cs : (ToString) output ScopeId.
1194 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
1196 * HttpWebRequest_2_1.cs, HttpWebResponse_2_1.cs :
1197 added new sources for those classes for 2.1 (in 2.1 they are
1198 almost abstract, while in 2.0 they are concrete).
1199 * HttpRequestCreator.cs, ServicePoint.cs :
1200 #ifdef 2.0 dependencies out.
1202 2007-06-28 Chris Howie <cdhowie@nerdshack.com>
1204 * ServicePoint.cs: Implemented BindIPEndPointDelegate.
1205 * FtpWebRequest.cs: Respect ServicePoint.BindIPEndPointDelegate.
1206 * WebConnection.cs: Respect ServicePoint.BindIPEndPointDelegate.
1208 2007-08-08 Jb Evain <jbevain@novell.com>
1210 * HttpWebRequest.cs: .ctor(Uri) is public in 2.1.
1212 2007-08-03 Jb Evain <jbevain@novell.com>
1214 * Dns.cs: remove async methods for the 2.1 profile.
1216 2007-07-17 Rodrigo Kumpera <rkumpera@novell.com>
1218 * HttpListenerRequest.cs: Support for Cookie decoding.
1219 * HttpListenerResponse.cs: Support for encoding cookies on the response sent to the client
1220 * Cookie.cs: new internal method to encode the Cookie in a proper form to sent to clients
1222 2007-07-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
1224 * WebConnectionStream.cs: implement the CanTimeout for 2.0. Fixes
1227 2007-07-12 Geoff Norton <gnorton@customerdna.com>
1229 * HttpListenerContext.cs:
1230 * HttpListener.cs: Handle HttpListener AuthenticationSchemes
1231 Only Basic authentication is included for now.
1233 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
1235 * NetworkAccess.cs: Only mark as flags enum on 2.0.
1237 2007-06-21 Dick Porter <dick@ximian.com>
1239 * AuthenticationManager.cs:
1245 * FileWebRequest.cs:
1246 * HttpWebRequest.cs:
1248 * ServicePointManager.cs:
1249 * HttpWebResponse.cs: Throw NotImplementedException indirectly, to
1250 reduce noise in Moma reports.
1252 2007-06-20 Atsushi Enomoto <atsushi@ximian.com>
1254 * ServicePointManager.cs : (bootstrap) build fix.
1256 2007-06-19 Dick Porter <dick@ximian.com>
1258 * AuthenticationManager.cs:
1259 * IWebProxyScript.cs:
1262 * CookieException.cs:
1263 * CredentialCache.cs:
1264 * FileWebRequest.cs:
1266 * FileWebResponse.cs:
1269 * HttpWebRequest.cs:
1270 * DecompressionMethods.cs:
1271 * HttpWebResponse.cs:
1272 * ProtocolViolationException.cs:
1274 * ServicePointManager.cs:
1277 * WebHeaderCollection.cs:
1279 * WebExceptionStatus.cs: 2.0 profile updates
1281 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
1283 * WebConnectionStream.cs: On read timeout, throw WebException with
1284 status Timeout instead of IOException.
1286 2007-05-16 Adar Wesley <adarw@mainsoft.com>
1288 * CookieCollection.cs: added missing method strongly typed CopyTo.
1290 * CredentialCache.cs: added missing methods Add, Remove, GetCredential
1292 * HttpWebRequest.jvm.cs: added missing ClientCertificates getter.
1294 * ServicePoint.cs: added missing method CloseConnectionGroup.
1296 * WebClient.cs: added missing methods OnDownloadProgressChanged,
1297 OnUploadProgressChanged, GetWebRequest, GetWebResponse
1299 * WebHeaderCollection.cs: added missing methods IsRestricted, Add,
1302 * WebProxy.cs: added missing method GetObjectData.
1304 2007-05-15 Marek Habersack <mhabersack@novell.com>
1306 * HttpWebRequest.cs: fold all methods into GET for
1307 redirect/moves. Fixes bug #81624
1309 2007-05-07 Miguel de Icaza <miguel@novell.com>
1311 Missing second part of the patch.
1313 * WebHeaderCollection.cs: To be compatible with older versions of
1314 Mono that might have serialized this in a different format, catch
1315 the potential exception, and try the old name.
1317 This should become a practice whenever we fix serialization in the
1322 2007-04-23 Marek Habersack <mhabersack@novell.com>
1324 * EndPointListener.cs: relax prefix matching to succeed in cases
1325 when the prefix ends with / and the request path does not. Fixes
1328 * CookieCollection.cs: added a SortByPath method to sort the
1329 collection on demand.
1331 * Cookie.cs: do not return "/" for Path if it wasn't set
1334 * CookieContainer.cs: set cookie path only if its version is
1335 "Netscape" and is null or empty. Fixes #81420.
1336 Sort the collection by the path relevance before returning from
1337 the GetCookies method. Fixes bug #81421.
1339 2007-04-17 Joel Reed <joelwreed@gmail.com>
1341 * WebHeaderCollection.cs: www-authenticate should be multivalue.
1342 This fixes a bug related to RFC 2608 which says in section
1343 "15.2 Offering a Choice of Authentication Schemes"
1345 An HTTP/1.1 server may return multiple challenges with a 401
1346 (Authenticate) response, and each challenge may use a different
1347 scheme. The order of the challenges returned to the user agent is in
1348 the order that the server would prefer they be chosen. The server
1349 should order its challenges with the "most secure" authentication
1350 scheme first. A user agent should choose as the challenge to be made
1351 to the user the first one that the user agent understands.
1353 Before this change, mono was choosing whatever was sent last,
1354 which was the most insecure authentication option.
1356 2007-04-10 Marek Habersack <mhabersack@novell.com>
1358 * HttpListenerRequest.cs: do not include the query start marker
1359 ('?') in the first variable name stored in the QueryString
1360 collection. There is no HTTP header 'Accept-Types' in the
1361 standard, there's only the 'Accept' header that specifies the
1362 accepted MIME types. Fixes bug #81317
1364 2007-03-25 Alan McGovern <alan.mcgovern@gmail.com>
1366 * IPAddress.cs : Further optimisation for the Swap*** methods.
1368 2007-03-24 Alan McGovern <alan.mcgovern@gmail.com>
1370 * IPAddress.cs : Optimised the SwapInt and SwapLong methods.
1372 2007-03-09 Miguel de Icaza <miguel@novell.com>
1374 * FtpDataStream.cs: Close must be called on the stream before we
1375 attempt to read a status code from the remote server.
1377 Fixes FTP transfers to complete.
1379 2007-03-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
1381 * HttpWebRequest.cs: properly handle OPTIONS, which may or may not
1382 have a request body. Fixes bug #80686.
1384 2007-03-02 Marek Habersack <mhabersack@novell.com>
1386 * WebClient.cs: Overwrite existing files on download, as
1387 documented and as tested on MS.NET. Fixes Bug#81005
1389 2007-02-24 Gert Driesen <drieseng@users.sourceforge.net>
1391 * HttpWebRequest.cs: Allow Proxy to be set to null on 2.0 profile.
1393 2007-02-18 Geoff Norton <gnorton@customerdna.com>
1395 * AuthenticationManager.cs: Register the modules in the 2.0 profile
1396 when we create the ArrayList.
1398 2007-02-01 Gert Driesen <drieseng@users.sourceforge.net>
1400 * WebProxy.cs: In IsBypassed, move address check back to satify unit
1403 2007-01-30 Ilya Kharmatsky <ilyak -at- mainsoft.com>
1405 * Dns.cs : implemented proper exception handling under TARGET_JVM
1406 when trying to resolve not existing host.
1408 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
1410 * IPAddress.cs: Provide more meaningful exception message on 2.0
1413 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
1415 * FileWebRequest.cs: Fixed PreAuthenticate and Proxy properties to
1416 no longer throw NotSupportedException. No longer store ContentLength
1417 in headers. Do not allow null or zero-length method. Allow timeout
1418 to be set to -1 (infine). Only disallow GET, HEAD and CONNECT requests.
1419 Removed workarounds for bug #24943. In (Begin)GetRequest overwrite
1420 file if it already exists. Binary serialization compatibility fixes.
1421 * FileWebResponse.cs: Return application/octet-stream as ContentType.
1423 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
1425 * WebHeaderCollection.cs: Fixed binary serialization compatibility
1428 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
1430 * WebProxy.cs: Lazy init bypassList. Fixes for binary serialization
1431 compatibility. Added stub for UseDefaultCredentials (2.0). On 2.0
1432 profile, throw ArgumentNullException in IsBypassed if host is null.
1434 2007-01-22 Miguel de Icaza <miguel@novell.com>
1436 * HttpWebRequest.cs: Remove unused variable.
1438 * FtpWebRequest.cs: Remove unused variable.
1440 * WebHeaderCollection.cs: Remove a handful of NotImplementedException's
1442 2007-01-11 Miguel de Icaza <miguel@novell.com>
1444 * HttpListenerRequest.cs (SetRequestLine): Add validation for the
1447 Allow any verbs to go through, not only
1448 the white list of verbs.
1452 2007-01-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1454 * RequestStream.cs: initialize the stream in both ctors. Fixes a couple
1457 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
1459 * HttpWebRequest.jvm.cs: Fixed line endings.
1460 * HttpWebResponse.jvm.cs: Same.
1461 * WebException.cs: Same.
1462 * FtpWebRequest.cs: Same.
1463 * VMWHttpProvider.jvm.cs: Same.
1465 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
1467 * DnsPermissionAttribute.cs: Fixed line endings.
1468 * HttpVersion.cs: Same.
1469 * FtpWebResponse.cs: Same.
1470 * HttpContinueDelegate.cs: Same.
1471 * FtpAsyncResult.cs: Same.
1472 * EndpointPermission.cs: Same.
1473 * IPv6Address.cs: Same.
1474 * FtpDataStream.cs: Same.
1475 * SocketPermission.cs: Same.
1476 * FileWebRequest.cs: Same.
1477 * FileWebResponse.cs: Same.
1478 * DnsPermission.cs: Same.
1479 * ProtocolViolationException.cs: Same.
1480 * MonoHttpDate.cs: Same.
1481 * SocketPermissionAttribute.cs: Same.
1482 * CookieException.cs: Same.
1483 * WebResponse.cs: Same.
1484 * DefaultCertificatePolicy.cs: Same.
1486 2006-12-28 Gert Driesen <drieseng@users.sourceforge.net>
1488 * IPAddress.cs: On 1.1, 4-byte addresses are not supported in the
1489 ctor. Added null checks for the address passed in the ctors.
1491 2006-12-28 Miguel de Icaza <miguel@novell.com>
1493 * IPAddress.cs: The condition in 1.1 was broken, it only allowed
1494 16-byte addresses, and never 4-byte addresses (only 2.0 had
1497 Keep a single code path.
1499 Also, remove all the NET_1_1 defines, we realistically only
1500 distinguish between 1.1 and 2.0, we wont likely support 1.0, 1.1
1501 and 2.0, so remove the 1.0 vs 1.1 conditionals.
1505 〓2006-12-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1507 * WebConnectionStream.cs: fix error in my last patch. Thanks to Felipe
1510 2006-12-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1513 * HttpWebRequest.cs:
1514 * WebConnectionStream.cs: detect errors writing headers earlier and
1515 avoid race that showed up with SSL. Fixes bug #80234.
1517 2006-12-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1519 * EndPointListener.cs:
1520 * ListenerPrefix.cs:
1521 * ResponseStream.cs:
1522 * ChunkedInputStream.cs:
1523 * HttpConnection.cs:
1524 * RequestStream.cs: add initial support for HTTPS.
1526 2006-12-18 Atsushi Enomoto <atsushi@ximian.com>
1528 * FtpStatus.cs : The build gets broken when only-2.0 classes/members
1529 are not excluded in 1.x build.
1531 2006-12-18 David Elkind <davide@mainsoft.com>
1533 * FtpAsyncResult.cs : FTP request is now working and covers about 100% of .NET API
1534 * FtpDataStream.cs: FTP request is now working and covers about 100% of .NET API
1535 * FtpWebRequest.cs: FTP request is now working and covers about 100% of .NET API
1536 * FtpWebResponse.cs: FTP request is now working and covers about 100% of .NET API
1537 * FtpStatus.cs: added composite status (includes status code and status description)
1539 2006-12-04 Konstantin Triger <kostat@mainsoft.com>
1541 * WebRequest.cs, WebResponse.cs: TARGET_JVM limitation workaround.
1543 2006-12-04 Konstantin Triger <kostat@mainsoft.com>
1545 * ServicePointManager.cs: correct assignment typo.
1546 * ServicePoint.cs: Remove unneeded locks for getters, add internal setter.
1548 2006-11-27 Miguel de Icaza <miguel@novell.com>
1550 * WebRequest.cs: Instead of throwing NotImplemented exceptions,
1551 call GetMustImplement, that way we do not need the whitelist, and
1552 we save a handful of opcodes.
1554 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1556 * HttpWebRequest.cs: add 2 more methods that are not supposed to have
1557 a body. Fixes bug #80001.
1559 2006-11-15 Andrew Skiba <andrews@mainsoft.com>
1561 * WebHeaderCollection.cs: add stubs for new 2.0 properties.
1563 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1565 * HttpWebResponse.cs: cookies are actually added to the request
1566 container if any. Fixes bug #79821.
1568 2006-11-02 Michael Hutchinson <m.j.hutchinson@gmail.com>
1570 * WebRequest.cs: more closely follow MS behaviour: use system settings
1571 unless told otherwise, and respect app.config.
1573 2006-11-01 Michael Hutchinson <m.j.hutchinson@gmail.com>
1575 * GlobalProxySelection.cs: Obsolete GlobalProxySelection under 2.0
1576 profile, and move code to new property WebRequest.DefaultWebProxy.
1577 * WebRequest.cs: Implement new 2.0 property DefaultWebProxy.
1578 Add support for config option UseSystemDefault using simplistic
1579 implementation of new 2.0 method GetSystemWebProxy ().
1581 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
1583 * FtpWebRequest.cs : more build fixes.
1585 2006-10-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1587 * EndPointListener.cs: update comment and avoid exception when the
1590 2006-10-30 Miguel de Icaza <miguel@novell.com>
1592 * WebRequestMethods.cs: Another typo fix.
1594 * ServicePointManager.cs: Set the default properly.
1596 * SecurityProtocolType.cs: Remove non-existant defines.
1598 2006-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1600 * HttpWebRequest.cs: internally allow buffer if it's not a known
1601 GET-only method instead of enabling that only for POST/PUT. Fixes bug
1604 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
1606 * WebConnection.cs: TARGET_JVM
1608 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1610 * WebException.cs: patch by Andrew Skiba that fixes serialization
1611 compatibility with .NET and the default value for status.
1613 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
1615 * Dns.cs: TARGET_JVM
1617 2006-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1619 * CookieContainer.cs: send the cookies from the collection we got for
1620 the given URI, not the whole collection.
1621 * HttpWebResponse.cs: only add the cookies to this instance, not to the
1622 cookie container set in the request.
1624 2006-09-11 Sebastien Pouliot <sebastien@ximian.com>
1626 * WebConnection.cs: Patch to remove the hack that was required for
1627 using the older versions of the SSL/TLS classes. This hack is no more
1628 required :-). Patch by Gonzalo Paniagua Javier.
1630 2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1632 * HttpConnection.cs: when the content length is available, keep it
1633 updated after synchronous read. Renamed 'available' to 'remaining_body'.
1634 * RequestStream.cs: when creating the stream, pass the remaining length
1635 starting from the offset in the buffer.
1637 2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1639 * RequestStream.cs: make sure we return 0 when no more bytes left.
1640 Paticularly, when we have a content length and the whole response is
1643 2006-08-20 Miguel de Icaza <miguel@novell.com>
1645 * RequestStream.cs (Read): A bug fix for #79112 and what I
1646 consider to be an important change.
1648 The bug fix is that we update the "available" variable as soon as
1649 we consume data from Read, this means that a second call into Read
1650 wont block. Available was only being updated on a secondary code
1651 path, now we alwaysupdate it after using FillFromBuffer.
1653 The second component is what I believe the right behavior should
1654 be. There was a check for "if count > available" that set count
1655 to available in that case. The idea was to limit the data read
1656 from the buffer that belonged to this particular request, to allow
1659 But this test was done after FillFromBuffer, which assumed that
1660 all the data held in the buffer (the one used by FillFromBuffer)
1661 must belong to the this request, and only future data did not.
1663 I think my change is correct, but it assumes that the initialized
1664 RequestStream will be used for other pipelined HTTP requests,
1665 which is not something am 100% sure of, so Gonzalo needs to check
1668 2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1670 * Cookie.cs: avoid nullref in GetHashCode and Equals.
1672 2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1674 * CookieCollection.cs:
1675 * CookieContainer.cs: remove expired cookies.
1677 2006-07-07 Atsushi Enomoto <atsushi@ximian.com>
1679 * Dns.cs : (GetHostEntry) when passed IP addresses, it does not issue
1680 query to DNS. Patch by Petri Latvala.
1682 2006-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1684 * CookieContainer.cs: don't send a secure cookie over an insecure
1687 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1689 * WebProxy.cs: (IsBypassed) 'loopback', 'localhost' and any address
1690 that starts with 127 are special.
1692 2006-05-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1694 * HttpListener.cs: Fixes race condition in BeginGetContext. Patch by
1695 Pawel Sakowski that fixes bug #78365.
1697 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
1699 * ServicePointManager.cs : oops, CONFIGURATION_DEP.
1701 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
1703 * GlobalProxySelection.cs : if corresponding config section is
1704 DefaultProxySection then use it.
1706 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
1708 * WebRequest.cs : if corresponding config section is
1709 WebRequestModulesSection then use it.
1711 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
1713 * ServicePointManager.cs : if corresponding config section is
1714 ConnectionManagementSection then use it.
1716 2006-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1718 * ResponseStream.cs:
1719 * HttpListenerResponse.cs: allow 0 length POST. Patch by Horst Reiterer.
1722 2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1724 * CredentialCache.cs: added DefaultNetworkCredentials.
1726 2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1728 * NetworkCredential.cs: implement ICredentialsByHost interface.
1730 2006-04-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1732 * WebConnection.cs: reset the challenge and the status code when
1733 creating the tunnel and sending the proxy auth. headers. Improve error
1734 message when there's an error creating the tunnel.
1735 * HttpWebRequest.cs: don't trigger an early throw for a POST that gets
1736 a 401 or 407 response.
1738 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1740 * WebConnectionData.cs:
1742 * HttpWebRequest.cs: when tunneling an ssl conneciton through a proxy,
1743 we were not handling a proxy authentication request. Fixes bug #78150
1746 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1748 * WebProxy.cs: a .ctor was not forwarding the 'credentials' argument.
1749 This fixes bug #78150. Also fix the bypass check for local requests.
1751 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1753 * WebProxy.cs: removed bogus ^M.
1755 2006-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1757 * HttpWebResponse.cs: don't remove the Set-Cookie headers. Fixes bug
1760 2006-04-04 Atsushi Enomoto <atsushi@ximian.com>
1762 * WebClient.cs : added a bunch of async method support.
1764 2006-04-03 Chris Toshok <toshok@ximian.com>
1766 * HttpWebResponse.cs (ContentEncoding): return "" if the header
1769 2006-03-30 Atsushi Enomoto <atsushi@ximian.com>
1771 * DownloadStringCompletedEventHandler.cs : missing delegate.
1773 2006-03-30 Atsushi Enomoto <atsushi@ximian.com>
1775 * Dns.cs : minor argument renaming.
1777 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
1779 * DownloadDataCompletedEventArgs.cs
1780 DownloadDataCompletedEventHandler.cs
1781 DownloadProgressChangedEventArgs.cs
1782 DownloadProgressChangedEventHandler.cs
1783 DownloadStringCompletedEventArgs.cs
1784 OpenReadCompletedEventArgs.cs
1785 OpenReadCompletedEventHandler.cs
1786 OpenWriteCompletedEventArgs.cs
1787 OpenWriteCompletedEventHandler.cs
1788 UploadDataCompletedEventArgs.cs
1789 UploadDataCompletedEventHandler.cs
1790 UploadFileCompletedEventArgs.cs
1791 UploadFileCompletedEventHandler.cs
1792 UploadProgressChangedEventArgs.cs
1793 UploadProgressChangedEventHandler.cs
1794 UploadStringCompletedEventArgs.cs
1795 UploadStringCompletedEventHandler.cs
1796 UploadValuesCompletedEventArgs.cs
1797 UploadValuesCompletedEventHandler.cs : added 2.0 types.
1799 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
1801 * Dns.cs : filled missing NET_2_0 members.
1803 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
1805 * IPAddress.cs : ugh, I was testing with run-test-ondotnet, not
1806 run-test. Those IPv6 properties needed to be reimplemented.
1808 2006-03-27 Atsushi Enomoto <atsushi@ximian.com>
1810 * IPAddress.cs : added NET_2_0 TryParse() and IPv6 related properties.
1812 2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1814 * WebConnectionStream.cs: avoid Begin/EndWrite when the body length is
1817 2006-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1819 * HttpWebRequest.cs: send the request if ContentLength is set for
1820 POST/PUT, the request stream has that exact amount of bytes in it and
1821 we're trying to get the response stream.
1823 This way, closing the request stream is not needed in order to actually
1824 send the request. Fixes bug #77753.
1826 * WebConnectionStream.cs: throw if the number of bytes written is
1827 greater than the specified request content length.
1829 2006-03-11 Miguel de Icaza <miguel@novell.com>
1831 * WebClient.cs: Only expose the right methods to avoid warnings.
1833 * FtpDataStream.cs (Dispose): Fix signature.
1835 * FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
1836 like we are missing features here).
1838 * IPAddress.cs: Move m_HashCode property to the end, and set
1839 pragmas to disable warnings.
1841 2006-02-16 Dick Porter <dick@ximian.com>
1843 * IPEndPoint.cs: The SocketAddress AddressFamily takes up the
1844 first two bytes, not just one. Check the size of the
1845 SocketAddress buffer for IPv6 as well.
1847 * Dns.cs: Cope when GetHostByName_internal or
1848 GetHostByAddr_internal returns fewer items in the array than it
1849 intended to (maybe due to conversion errors.)
1851 2006-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1853 * FtpWebResponse.cs: Add UpdateStatus method, to update both
1854 statusCode and statusDescription at the same time.
1856 2006-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1858 * FtpWebRequest.cs: Remove WebExceptionStatus argument
1859 from CreateExceptionFromResponse, since exceptions gotten
1860 from server response always have a WebExceptionStatus.ProtocolError
1863 2006-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1865 * FtpWebRequest.cs: Add renaming support when using
1866 WebRequestMethods.Ftp.Rename method.
1868 2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1870 * ChunkedInputStream.cs:
1871 * ChunkStream.cs: handle partial trailers and zero reads. Patch by Pawel
1874 2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1876 * HttpWebRequest.cs: don't send the expect-100 if if there's no content.
1878 * HttpListenerRequest.cs:
1879 * HttpConnection.cs:
1880 * RequestStream.cs: use the content length header to avoid reading past
1881 the end of the stream.
1883 Patch by Horst Reiterer.
1885 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1887 * FtpWebRequest.cs: Add supportedCommands array with the sorted
1888 methods, to search using Array.BinarySearch. Remove CheckMethod.
1890 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1892 * FtpWebRequest.cs: Fixed some typos and small issues.
1894 2006-02-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1896 * HttpWebRequest.cs: dummy implementation of UnsafeAuthenticationBlah
1899 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1901 * FtpRequestCreator.cs:
1902 * FtpAsyncResult.cs:
1905 * FtpWebResponse.cs: Initial implementation of FtpWebRequest (2.0)
1907 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1909 * FtpStatusCode.cs: Fix a typo.
1911 2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1913 * WebClient.cs: (2.0) UploadString() returns string, not void.
1915 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1917 * HttpWebResponse.cs: ignore non-integer values for max-age and version.
1918 Fixes bug #77199. Thanks to Cyrille Colin.
1920 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1922 * HttpWebResponse.cs: cope with malformed cookies with '=' as value.
1923 Patch by Cyrille Colin. Fixes bug #77179.
1925 2005-12-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1927 * FtpStatusCode.cs: New 2.0 enum.
1929 2005-12-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1931 * CookieContainer.cs: fix matching of subdomains. Patch by Cyrille
1934 2005-12-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1936 * HttpWebResponse.cs: don't loop forever when no name or value between
1937 semicolons. Fixes bug #76943.
1939 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1941 * HttpWebResponse.cs: don't fail if the cookie ends with a 'name'
1942 without a value. Fixes bug #76922.
1944 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1946 * EndPointListener.cs:
1947 * HttpListenerRequest.cs: don't require the Host header for 1.0. Just
1948 map that to the '*' or '+' host.
1950 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1952 * IPAddress.cs: the byte[] ctor supports length 4 in .NET 2.0.
1955 2005-11-21 Senganal T <tsenganal@novell.com>
1957 * Dns.cs : corrected a mistake in GetHostEntry ()
1959 2005-11-21 Senganal T <tsenganal@novell.com>
1961 * Dns.cs : added GetHostEntry() method for 2.0 api conformance
1963 2005-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1965 * HttpRequestHeader.cs: add missing values.
1967 2005-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1969 * HttpListenerPrefixCollection.cs:
1970 * HttpWebResponse.cs:
1972 * HttpListenerRequest.cs:
1973 * HttpWebRequest.cs:
1974 * HttpListenerResponse.cs: a few signature fixes for 2.0.
1976 2005-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1978 * HttpListenerPrefixCollection.cs:
1979 * EndPointListener.cs:
1980 * HttpStreamAsyncResult.cs:
1981 * HttpListenerContext.cs:
1982 * HttpListenerBasicIdentity.cs:
1983 * AuthenticationSchemeSelector.cs:
1985 * WebHeaderCollection.cs:
1986 * ListenerPrefix.cs:
1987 * HttpListenerException.cs:
1988 * HttpResponseHeader.cs:
1989 * EndPointManager.cs:
1990 * HttpListenerRequest.cs:
1991 * HttpRequestHeader.cs:
1992 * BindIPEndPoint.cs:
1993 * ResponseStream.cs:
1994 * ChunkedInputStream.cs:
1995 * HttpStatusCode.cs:
1996 * ListenerAsyncResult.cs:
1998 * HttpConnection.cs:
2000 * HttpListenerResponse.cs:
2001 * RequestStream.cs: initial implementation of HttpListener. There are
2002 a few TODOs left (cookies, HTTPS) but almost everything else is in.
2004 2005-11-15 Sebastien Pouliot <sebastien@ximian.com>
2006 * IPv6Address.cs: Added on overload to ToString to get a the full
2007 length address returned (as required by System.Uri).
2009 2005-11-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2011 * WebRequestMethods.cs: New 2.0 class.
2013 2005-11-05 Atsushi Enomoto <atsushi@ximian.com>
2015 * WebClient: use POST for DownloadData(). Fixed bug #76631.
2017 2005-10-26 Atsushi Enomoto <atsushi@ximian.com>
2019 * AuthenticationSchemes.cs : Fixed enum values and added [Flags].
2021 2005-10-19 Atsushi Enomoto <atsushi@ximian.com>
2023 * WebClient.cs : added net_2_0 DownloadString() and DownloadData()
2024 with HTTP method as well.
2026 2005-10-19 Atsushi Enomoto <atsushi@ximian.com>
2028 * WebClient.cs : added UploadString() and Encoding (net_2_0). Added
2029 some new overloaded stuff that takes Uri instead of string address.
2031 2005-10-17 Sebastien Pouliot <sebastien@ximian.com>
2033 * ICredentialPolicy.cs: New. Interface for 2.0.
2035 2005-10-05 Atsushi Enomoto <atsushi@ximian.com>
2037 * AuthenticationSchemes.cs : new 2.0 enum.
2039 2005-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2041 * GlobalProxySelection.cs: remove double lock.
2042 * HttpWebRequest.cs: remove double lock in GetServicePoint() and use
2043 a private object when locking.
2045 2005-07-15 Miguel de Icaza <miguel@novell.com>
2047 * DigestClient.cs: Fix bug #75556, the qop argument must be
2048 quoted, per http://www.faqs.org/rfcs/rfc2617.html section
2051 2005-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2053 * WebConnectionStream.cs: initiate writing the body before trying to
2054 read. This fixes the performance problems observed in web services.
2057 2005-06-27 Lluis Sanchez Gual <lluis@novell.com>
2059 * IPAddress.cs: Changed field names for the sake of serialization
2060 interoperability with MS.NET.
2062 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2064 * WebConnection.cs: if cnc.EndRead throws, mark the asyncresult as done.
2065 * WebConnectionStream.cs: if we're done with the body of a chunk, don't
2066 require the next chunk header to be there, as some servers might close
2067 the connection (while also sending 'Connection: close').
2069 2005-06-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2071 * HttpWebRequest.cs: MS implementation follows redirects for POST. Seems
2072 to me that this is against 10.3.3 in RFC 2616, but may be the user
2073 'authorization' to do this is implicit in AllowAutoRedirect...
2075 2005-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2077 * WebConnection.cs: SslClientStream.BeginRead might not be asynchronous
2078 if there's no record available to read. This is a workaround that makes
2079 the call to BeginRead itself asynchronous. Fixes bug #75342.
2081 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2084 * HttpWebRequest.cs:
2085 * WebConnectionStream.cs: initiate the polling for input data after
2086 sending the header so that we detect any response that the server sends
2087 back even if we're still trying to write the request for a POST/PUT.
2088 If we get the response (or an error) before any one calls GetResponse(),
2089 keep it around instead of ignoring it.
2091 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2093 * HttpWebRequest.cs: send the right header/user/password in
2094 PreAuthenticate in presence of a proxy.
2096 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2098 * IPv6Address.cs: fix IsLoopback. Closes bug #75128.
2100 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2102 * IPv6Address.cs: don't do extra check on ipv4 if this is a ipv6
2103 address. Fixes bug #75125.
2105 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2107 * ServicePointManager.cs: when going through a proxy, use 2 different
2108 service points depending on the scheme. Fixes bug #75135.
2110 2005-05-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2112 * Dns.cs: don't parse the address when it comes from an IPAddress.
2114 2005-05-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2116 * WebConnection.cs: prevent 2 nullrefs when the aborting during
2117 Connect() and reset the status to Success before starting a new
2120 2005-05-19 Sebastien Pouliot <sebastien@ximian.com>
2122 * WebRequest.cs: Throw NotImplementedException (not NotSupported
2123 Exception) for stuff that should have been abstract. No exception
2124 is thrown by the serialization constructor.
2126 2005-05-04 James Willcox <james@ximian.com>
2128 * DigestClient.cs: convert to a hex string with "X8" consistently
2131 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2133 * WebConnection.cs: don't rethrow errors in Write, as the error will be
2134 received by GetResponse*. The result is that the threadpool thread doing
2135 this will not end up printing the exception. Fixes bug #74817.
2137 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2139 * ServicePoint.cs: HostEntry needs to be thread safe.
2141 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2143 * WebConnection.cs: removed a 'slightly' important line by mistake.
2144 * WebConnectionStream.cs: if the transfer encoding is chunked, ignore
2145 content-length header if present.
2147 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2149 * WebConnection.cs: no need to use an AutoResetEvent.
2150 * WebConnectionStream.cs: don't start any more reads on the socket
2151 after getting a 0 signalling the end. This fixes Ben's infamous foo.cs
2154 2005-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2156 * BasicClient.cs: firefox/IE just send latin1, stripping the high byte
2157 from unicode >= 256 characters.
2159 2005-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2161 * BasicClient.cs: use latin1 when encoding the username/domain/password.
2164 2005-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2166 * WebConnectionStream.cs: if the BeginRead/BeginWrite is completed
2167 synchronously, no need to create the ManualResetEvent to wait on.
2169 2005-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2171 * WebConnectionStream.cs: call SetComplete in EndWrite when we're not
2172 buffering the request body. Fixes bug #74637.
2174 * WebAsyncResult.cs: renamed field.
2176 2005-04-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2178 * WebConnectionStream.cs:
2179 * WebAsyncResult.cs: ensure we only call EndRead once per async. result.
2180 Update total before invoking the callback when present.
2182 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2185 * WebConnectionStream.cs: don't start reading until we've sent at least
2186 the headers. This way we ensure that a Write happens before any Read,
2187 which is needed by the SSL code.
2189 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2191 * HttpWebRequest.cs: ensure we read everything before redirecting.
2193 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2195 * WebConnectionStream.cs: provide a default callback when doing async.
2196 read/write and waiting for a timeout so that the callback sets the
2197 event and we don't block forever. Fixes bug #74539 take 3.
2199 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2202 * HttpWebRequest.cs: now Abort() works properly. Fixes bug #74177.
2204 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2206 * WebConnection.cs: fix some breakage from my last patch.
2207 * WebConnectionStream.cs: invoke the callback when done even in EndRead.
2209 2005-04-10 Sebastien Pouliot <sebastien@ximian.com>
2211 * WebConnection.cs: Added support for TrustFailure when throwing a
2212 WebException. Fix bug #74286.
2214 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2216 * HttpWebRequest.cs:
2217 * WebConnectionStream.cs: implemented support for ReadWriteTimeout.
2219 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2221 * WebConnection.cs: if we're reading chunked data and didn't use the
2222 stream to read, we gotta set the async. result as complete and invoke
2223 the callback. Don't call nstream.EndRead with the wrong IAsyncResult.
2225 * WebConnectionStream.cs: in EndRead, pass the correct IAsyncResult to
2226 cnc.EndRead. Lock on a field instead of 'this'.
2228 2005-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2230 * HttpWebRequest.cs: throw the exception if we got an error, as now
2231 it's catched in the redirection handling code.
2233 2005-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2235 * HttpWebRequest.cs: moved redirection handling to a proper place.
2237 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2239 * WebHeaderCollection.cs: added if-modified-since to the list of
2242 * ServicePoint.cs: use a field object when locking.
2244 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2246 * WebConnectionStream.cs: ForceCompletion actually calls NextRead. No
2247 need to wait for a Close/ReadAll when we have no content.
2249 2005-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2251 * NtlmClient.cs: fix typo in assembly name.
2253 2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2255 * CookieContainer.cs: adding to a CookieCollection might not increment
2256 the number of items if the cookie is replaced. Now Count works properly.
2257 Fixed an array index exception (typo).
2259 * CookieCollection.cs: also compare the version.
2261 * HttpWebResponse.cs: when we have cookies, add them to the request
2264 * HttpWebRequest.cs: changed last parameter of HttpWebResponse ctor.
2266 2005-03-30 Miguel de Icaza <miguel@novell.com>
2268 * Cookie.cs: Compare using the InvariantCulture, to match the
2269 behavior of CookieContainer that already did this.
2271 2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2273 * WebConnection.cs: we don't need to trigger the next queued request
2274 until the response is closed.
2276 2005-03-29 Miguel de Icaza <miguel@novell.com>
2278 * HttpWebResponse.cs: Handle quotations in the cookies values, per
2279 the spec http://www.faqs.org/rfcs/rfc2109.html, it is allowed to
2282 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2285 * DigestClient.cs: check that GetCredential() does not return null.
2287 2005-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2289 * BasicClient.cs: ensure credentials are not null.
2291 2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2293 * HttpWebResponse.cs: moved cookie parsing into its own class.
2294 * WebHeaderCollection.cs: remove (probably bogus) GetMultipleValues
2296 * HttpWebRequest.cs: don't let exception raised in the ctor of
2297 HttpWebResponse vanish.
2301 2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2303 * WebHeaderCollection.cs: handle commas inside quotes when splitting
2304 a multi-value header. Fixes bug #73151.
2306 2005-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2308 * DigestClient.cs: fix for digest auth. and URIs containing query. Patch
2309 by James Wilcox. Fixes bug #72571.
2311 2005-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2313 * HttpWebResponse.cs:
2315 * HttpWebRequest.cs:
2316 * WebConnectionStream.cs: don't read the entire response unless the
2317 user requests it. Fixes bug #72443.
2319 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
2321 * IPv6Address.cs: Fix endianess problems.
2323 * IPAddress.cs: Fix misleading comments.
2325 2005-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2327 * HttpWebRequest.cs: send the headers when we're supposed to write
2328 a POST/PUT but call GetResponse before GetRequestStream.
2330 * WebConnectionStream.cs: new RequestWritten property.
2332 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
2334 * EndpointPermission.cs: Fix IsSubsetof(hostname) so that the regression
2335 tests work. In particular, IsSubsetOf ("12.13.*.*", "12.13.14.*") failed
2336 because 14 wasn't a subset of * (which it is). Fix: if part1 is we
2337 continue to the next portion.
2339 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
2341 * IPAddress.cs (ParseIPV4): Fix so that the regression tests work. In
2342 particular, " foo" and ".1.1.6" weren't being caught (" foo" because it
2343 started with a space, and ".1.1.6" because the split string accepted a
2344 0-length portion, which would make 1...6 valid, but isn't valid based on
2345 similar test cases).
2347 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
2349 * WebHeaderCollection.cs: Fix GetValues(string) to split the values on
2350 commas if the header is a Multi-Value header. This matches
2351 MonoTests.System.Net.WebHeaderCollectionTest.
2353 2005-01-19 Sebastien Pouliot <sebastien@ximian.com>
2355 * WebPermissionAttribute.cs: Fixed NET_1_1 behaviour.
2357 2004-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2359 * WebConnectionStream.cs: remove unneeded check. Write detects and
2360 triggers the exception now.
2362 2004-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2364 * AuthenticationManager.cs: don't lock on a public Type.
2365 * HttpWebRequest.cs: read the error response for auth. errors.
2367 2004-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2369 * HttpWebRequest.cs: set webResponse back to null when redirecting.
2370 Fix the previous patch so that it reads the whole response even if
2371 auto-redirect is not enabled. Closes bug #70484.
2373 2004-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2375 * HttpWebResponse.cs: added ReadAll method.
2377 * WebConnection.cs: in HandleError, set the response error after
2378 closing the socket. Use an async. delegate to finish reading any prior
2379 WebConnectionStream.
2381 * HttpWebRequest.cs: for error responses that allow content, read the
2382 stream immediately. Fixes bug #70483.
2384 2004-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2386 * CookieContainer.cs: quote the port number.
2388 2004-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2391 * WebConnectionStream.cs: removed TryReconnect. It's no longer needed.
2393 2004-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2395 * WebConnection.cs: set the event in Close so that if the queue is
2396 empty, we won't block forever on next request. The finalizer was
2397 removed because we're not implementing IDisposable pattern here.
2399 2004-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2401 * WebConnection.cs: handle errors on chunked streams. Fixes bug #66858.
2402 * ChunkStream.cs: added error checking all over.
2404 * HttpWebRequest.cs: throw the exception received in SetResponseError
2405 if we already have a response.
2406 (SetRequestData): Don't nest the exception if it's a WebException.
2408 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2410 * WebConnection.cs: remove prevStream and don't set busy to false in
2411 HandleError. prevStream is not needed any more and setting 'busy' so
2412 early might let a request skip the queue.
2414 * WebConnectionGroup.cs: decrement the indexer when removing a dead
2415 reference from the arraylist.
2417 * WebConnectionStream.cs:
2418 (ReadAll): call NextRead if it has not been called before even when
2419 we have completed the request. Reuse the read buffer when reading a
2420 response of unknown size. Increase the buffer to 8kB.
2421 (BeginRead): increase pendingReads earlier and even when reading from
2422 the internal buffer.
2423 (EndRead): decrease pendingReads later and always.
2425 2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2427 * CookieContainer.cs: style, fixed checks for properties, implemented
2428 the MonoTODOs for the method that take an Uri. GetCookies and
2429 GetCookieHeaders now really return only the cookies that are requested
2430 filtering by the Uri parameter.
2432 * Cookie.cs: style, added default values for Comment, Domain and Port.
2434 2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2436 * CookieCollection.cs: reformatted, fixed Add by adding a new method to
2437 search across the arraylist, as list.IndexOf is not what we want.
2439 2004-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2441 * WebConnection.cs: check for FIN or RST on the socket before reusing.
2444 2004-11-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2446 * ChunkStream.cs: simplified condition for WantMore property.
2448 * WebConnection.cs: in Connect(), finish any pending reads we might
2449 have for chunked data. Ignore possible blank lines at the very
2450 beginning of the server response. Honor user set KeepAlive in
2451 HttpWebRequest for HTTP/1.1 connections. Thanks to Eyal Alayuf for
2452 his suggestions and code.
2454 2004-11-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2456 * HttpWebResponse.cs: don't lock up when the cookie received ends with
2457 a semicolon. Patch by Darryl VanDorp. Fixes bug #68956.
2459 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2461 * HttpWebRequest.cs: don't fail if the request has already been sent
2462 when accessing ContentType setter. Fixes bug #68848.
2464 2004-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2467 (WantMore): we're not done until we get a 0 chunk size and the trailer.
2468 The 0 can be expressed as more than one character too (ie, 000000).
2470 * HttpWebRequest.cs: new argument in SetResponseError.
2471 * WebConnection.cs: added argument to HandleError as a hint for
2473 (Connect): make the chunked stream be in the expected state when
2476 * WebConnectionStream.cs: removed unused method (ResetWriteBuffer).
2478 2004-10-10 David Sheldon <dave-mono@earth.li>
2480 * HttpWebRequest.cs: Use RemoveAndAdd for AddRange. Fixes unittest.
2482 2004-10-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2484 * HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
2485 * WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
2488 2004-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2490 * HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
2491 tunneling a secure connection.
2493 * ServicePoint.cs: added UseConnect property.
2495 * ServicePointManager.cs: set the UseConnect property when we use a http
2496 proxy for a https connection.
2498 * WebConnection.cs: setup the tunnled connection when using a proxy and
2501 2004-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2503 * HttpWebResponse.cs: remove unused SplitValue method.
2505 2004-09-10 Sebastien Pouliot <sebastien@ximian.com>
2507 * DnsPermission.cs: Updated to pass new unit tests.
2508 * DnsPermissionAttribute.cs: Cleanup.
2509 * SocketPermission.cs: Updated to pass new unit tests.
2510 * SocketPermissionAttribute.cs: Updated to pass new unit tests.
2511 * WebPermission.cs: Implemented some TODO - not complete yet.
2512 * WebPermissionAttribute.cs: Updated to pass new unit tests.
2514 2004-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2516 * Cookie.cs: don't fail when using default constructor. Fixes bug
2519 2004-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2521 * HttpWebResponse.cs: set-cookie and set-cookie2 can be present more
2522 than once and have multiple values. Don't rely on string.split when
2523 parsing cookie values.
2525 * WebHeaderCollection.cs: same thing for set-cookie and set-cookie2.
2526 Fixed GetValues (it was splitting values that contained a comma) and
2527 changed SetInternal to handle multi-value headers.
2531 2004-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2533 * WebProxy.cs: fix scheme detection. Patch by Konstantin Triger
2534 (kostat@mainsoft.com).
2536 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2538 * HttpWebRequest.cs: detect changes in scheme or port when redirecting.
2539 Fixes las take on bug 61218.
2541 2004-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2543 * WebConnection.cs: moved loading of the ssl stream Type to its own
2544 method. Don't create a new ssl stream if we're reusing the connection.
2546 * WebConnectionStream.cs: ensure the number of bytes copied in ReadAll
2547 is the expected even if the dta from the server has extra bytes.
2549 2004-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2552 * WebConnectionStream.cs: when the status code is 1xx, 204 or 304,
2553 "responses MUST NOT include a message-body". We tried to read the
2554 stream even when getting those codes and considered the 0 length
2557 2004-07-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2559 * HttpWebRequest.cs: removed bogus Monitor.Exit.
2560 * WebConnection.cs: use Address instead of RequestUri when checking for
2561 the scheme in order to select the stream type. Fixes bug #61218.
2563 2004-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2565 * ChunkStream.cs: added ChunkLeft property.
2567 (EndRead): when using small byte arrays to read from a chunked stream,
2568 ensure we've read the chunk size and try to fulfill the request
2569 completely. fixes bug 59653.
2571 2004-05-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2573 * WebConnectionStream.cs: fixed CanRead property. Closes bug #59273.
2575 2004-05-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2577 * DigestClient.cs: cache the sessions based on address and
2578 credentials, not only address. Added poor men's expiration to
2579 the session cache. Fixes bug #59202.
2581 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2585 * IPv6Address.cs: no more warnings about IPAddress.Address.
2587 2004-05-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2589 * WebException.cs: implemented serialization .ctor and
2592 2004-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2594 * WebAsyncResult.cs: don't create the WaitHandle if not needed.
2596 2004-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2598 * HttpWebRequest.cs: added 3 missing properties for 1.1. They are not
2601 * NetConfig.cs: added MaxResponseHeadersLength field.
2604 * ServicePointManager.cs: added missing properties for 1.1.
2606 2004-05-03 Sebastien Pouliot <sebastien@ximian.com>
2608 * WebConnection.cs: Use assembly name const to load Mono.Security.
2610 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
2612 * NtlmClient.cs: Use assembly name const to load Mono.Security.
2614 2004-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2616 * WebConnectionStream.cs: avoid the exception when getting the content
2619 2004-03-29 Lluis Sanchez Gual <lluis@ximian.com>
2621 * HttpWebRequest.cs: Use a lock block instead of Monitor.Enter/Exit, so
2622 the lock is released in case of exception (for example, a
2623 ThreadAbortException). This also "fixes" bug #52417.
2624 Beware, this requires a runtime update (due to a bug in Monitor.Exit).
2625 * ServicePoint.cs: Changed method from internal to private, since it
2626 is not called from outside the class.
2628 2004-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2630 * HttpWebRequest.cs: added the exception status to the error message.
2631 * WebConnection.cs: add headers using SetInternal instead of Add to
2632 bypass header name validation. Fixes bug #55994.
2633 * WebHeaderCollection.cs: added SetInternal (string header).
2635 2004-03-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2638 * WebConnectionGroup.cs: the requests queue is now shared for all the
2639 connections belonging to the same connection group.
2641 2004-02-26 Sebastien Pouliot <sebastien@ximian.com>
2643 * DefaultCertificatePolicy.cs: New. Certificate validation
2644 policy compatible with the documented one present in Fx. It
2645 allows valid certificates and expired certificates to be used
2646 for SSL connections.
2647 * ServicePointManager.cs: Removed the DummyPolicy. Now creates
2648 a DefaultCertificatePolicy to validate certificates.
2650 2004-02-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2652 * ServicePoint.cs: SendContinue is always false for HTTP/1.0
2654 * WebConnection.cs: get rid of WaitForContinue() (yes!) and prevent
2655 calling more the ContinueDelegate more than once when we get the
2656 headers in several packets.
2658 * WebConnectionStream.cs: removed call to WaitForContinue.
2660 2004-02-25 Sebastien Pouliot <sebastien@ximian.com>
2662 * WebConnection.cs: Update previous patch to use HttpsClientStream
2663 (internal in Mono.Security assembly) in place of SslClientStream.
2664 This will reduce reflection and allow to use ICertificatePolicy.
2666 2004-02-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2668 * DigestClient.cs: fix quote handling. Reordered attributes in response.
2669 Fixed typo (QOP->CNonce). Now Digest works with apache2.
2671 2004-02-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2673 * DigestClient.cs: removed Console.
2674 * HttpWebRequest.cs: 401/407 were hanging for GET. Fixed.
2676 2004-02-24 Sebastien Pouliot <sebastien@ximian.com>
2678 * DigestClient.cs: Fixed issue with Apache server which do not use "
2679 for specifying the digest algorithm (.e.g. algorithm=MD5 not ="MD5").
2681 2004-02-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2683 * HttpWebRequest.cs: arghhh. I used the server response headers instead
2684 of what the client is supposed to send. Thanks to Helge Hess.
2686 2004-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2688 * AuthenticationManager.cs: implemented PreAuthenticate().
2690 * HttpWebRequest.cs: once we know the version of the server, use it if
2691 below the requested one. Remove 'Expect', 'Content-Length' and /or
2692 'Transfer-Encoding' if appropiate due to changes in version. Fixed
2693 'Host' header for non-standard ports. Support preauthentication. Closes
2696 2004-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2698 * HttpWebRequest.cs: check for missing or wrong URI in Location header
2701 * WebConnection.cs: if the data read does not contain all the headers,
2702 keep it around and read the rest until we get to the response body.
2703 Allow response code with no description. Fixed bug #54543.
2705 2004-02-18 Sebastien Pouliot <sebastien@ximian.com>
2707 * SecurityProtocolType.cs: Added missing [Serializable] to enum. Added
2708 Default and Ssl2 to NET_2_0 profile. Enum is now internal for NET_1_0
2709 profile (as we need it for SslClientStream).
2710 * ServicePoint.cs: Added internal SetCertificates(client,server).
2711 * ServicePointManager.cs: Added CheckCertificateRevocationList and
2712 CheckCertificateRevocationList static properties (public in 1.1,
2714 * WebConnection.cs: Dynamically creates a SslClientStream (from
2715 Mono.Security assembly) in case of https. Changed NetworkStream to
2718 2004-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2720 * HttpWebRequest.cs: send the 'Connection: keep-alive' header when we
2721 don't know the server version or it's 1.0.
2723 * ServicePoint.cs: added SetVersion.
2725 * WebAsyncResult.cs: remove ChunkAsyncResult.
2727 * WebConnection.cs: set the ServicePoint version when getting a response
2730 * WebConnectionStream.cs: when posting chunked content, send the head,
2731 body and trailer of the chunk at once instead of doing 3 separate
2732 writes, which may cause troubles.
2734 2004-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2736 * WebConnection.cs: if we get a 100 when we're not waiting for it, set
2737 that information in the ServicePoint.
2739 * WebConnectionStream.cs: send headers in the right order for
2742 2004-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2744 * WebConnectionStream.cs: fixed nullrefs in BeginWrite/EndWrite.
2746 2004-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2748 * HttpWebRequest.cs: on second and sucesive tries when authenticating,
2749 don't use chunked encoding for POST, as we know the content length and
2750 have the body. Nullify bodyBuffer always in CheckFinalStatus.
2752 * WebAsyncResult.cs: added ChunkAsyncResult property. It holds the
2753 IAsyncResult when writing CRLF at the end of a chunk.
2755 * WebConnectionStream.cs: support sending chunked data.
2757 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
2759 * HttpWebRequest.cs: When retrying a POST request after an
2760 authentication failure, resend the body. This fixes bug #51841.
2761 * WebConnectionStream.cs: Added properties for getting what's been
2764 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2766 * HttpWebRequest.cs: don't send 'Expect: 100-continue' for 1.0 version.
2768 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2770 * HttpWebRequest.cs: support proxy authentication.
2772 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2775 * DigestClient.cs: use IndexOf instead of StartsWith to deal with
2776 servers that provide several authentication schemas.
2778 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2780 * ChunkStream.cs: use an array of buffers instead of a MemoryStream for
2781 storing the chunks. This way, we won't miss traling data from the
2782 previous chunk when a new one is received before the other is fully
2785 2004-01-27 Nick Drochak <ndrochak@ieee.org>
2788 * HttpWebRequest.cs:
2792 * WebConnectionStream.cs: Remove unused variables thus eliminating some
2795 2004-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2797 * WebConnection.cs: patch by Yaacov Akiba Slama that fixes 100-continue
2798 handling for the case when the same packet also contains the actual
2801 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
2803 * HttpWebRequest.cs: Added missing property.
2805 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2807 * Dns.cs: don't block forever in EndResolve and EndGetHostByName. Fixes
2810 2004-01-16 Lluis Sanchez Gual <lluis@ximian.com>
2812 * ChunkStream.cs: The "size" parameter of Write is not the number of
2813 bytes to write, but the last offset to be written. Thus, in WriteAndRead
2814 Back, since "read" is not an offset but the number of bytes, it must be
2815 added to the offset. Maybe it would be a good idea to change the name of
2816 the parameter, since it is confusing. This should fix bug #52591.
2818 2004-01-12 Lluis Sanchez Gual <lluis@ximian.com>
2820 * WebConnection.cs: Yet another fix for WebConnection. This fixes
2823 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2825 * WebConnection.cs: Data.Init is a bad boy. Lluis realized. He also
2826 tidied up the end of ReadDone. Disabled relaunching the request if 2
2827 InitRead are called, since now we don't throw everything into
2828 RegisterWaitForSingleObject but one request at a time.
2830 * WebConnectionGroup.cs: when checking available connections, allow them
2831 not to be Connected but allocated to honor the connection limit.
2833 * WebConnectionStream.cs: CheckComplete() now checks for nextReadCalled
2834 too. ReadAll don't mess contentLength if it's provided in the headers.
2836 BIG thanks to Lluis. Turns out that we were debugging the same stuff and
2837 his Data.Init discovery was THE thing I was missing.
2841 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2843 * ServicePointManager.cs: use GetMaxConnections to get the appropiate
2844 number of connections limit.
2846 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2848 * MonoHttpDate.cs: use the invariant culture, not en-US. Suspected
2849 guilty for bug 52629.
2851 2003-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2853 * CredentialCache.cs: return null instead of throwing NotImplemented.
2855 2003-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2857 * HttpWebRequest.cs: fixed checking if method allows a body. Patch by
2858 Benjamin Jemlich (pcgod@gmx.net).
2860 2003-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2862 * HttpWebRequest.cs: deal with authentication schemes that have more
2863 than 1 round trip (Ntlm).
2865 2003-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2867 * NtlmClient.cs: new class that actually uses one from Mono.Http to do
2870 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2872 * HttpWebRequest.cs: when building the redirect URI, use the previous
2873 one as the base URI, which makes relative URIs work.
2875 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2877 * DigestClient.cs: merged in code from Sebastien Pouliot and Greg
2878 Reinacker that Supports cnonce and preauthentication.
2880 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2882 * DigestClient.cs: initial Digest authentication. Works with apache
2885 2003-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2887 * HttpWebRequest.cs: removed unneeded StringBuilder.
2888 * WebConnection.cs: default to keep the connection open for HTTP/1.1
2889 only or HTTP/1.0 + (Proxy-)Connection header. Fixes bug #51208.
2891 2003-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2893 * WebConnection.cs: turns out that socket.Connected is not useful until
2894 we actually try to send/receive data, even if the other end has already
2895 closed the socket. Added TryReconnect() and Connected.
2897 * WebConnectionData.cs: default value for StatusCode is 0 now.
2899 * WebConnectionGroup.cs: reuse the connection since the beginning,
2900 instead of opening up to ConnectionLimit and then reusing.
2902 * WebConnectionStream.cs: reopen the socket if we're trying to reuse
2903 one which fails on first write.
2905 2003-11-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2907 * WebConnectionStream.cs: when a callback is passed to BeginRead/Write,
2908 wrap it and do our job before calling it. Fixes bug #48497.
2910 2003-11-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2912 * WebExceptionStatus.cs: Restyled, Added .Net 1.1 members
2913 * SecurityProtocolType.cs: Added and implemented
2915 2003-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2917 * HttpWebRequest.cs: fixed redirects when they target another host.
2919 2003-11-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2921 * IPAddress.cs: prevent exceptions when trying to parse the static IPv6
2924 2003-10-17 Pedro Martinez Julia <yoros@wanadoo.es>
2926 * WebClient.cs: use Path.DirectorySeparator instead of "/" for
2927 windows compatibility. Add some checks for file paths like
2928 "C:/xxx/yyy/..." and like "/home/xxx/...".
2930 2003-10-16 Pedro Martinez Julia <yoros@wanadoo.es>
2932 * WebClient.cs: added a slash between directory and file names.
2934 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2936 * HttpWebRequest.cs:
2937 * HttpWebResponse.cs: better abort handling and leave the stream in a
2938 stable status on abort.
2940 2003-10-12 Pedro Martinez Julia <yoros@wanadoo.es>
2942 * WebClient.cs: refine reading of local files (like MS.NET).
2944 2003-10-10 Pedro Martinez Julia <yoros@wanadoo.es>
2946 * WebClient.cs: MS.NET works right when we try OpenRead("file.txt")
2947 but we didn't. Now, when Uri fails with an exception, it adds
2948 "file://" before the URI and tries again.
2950 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2952 * ServicePoint.cs: preparing for recycling. Not yet finished.
2953 * ServicePointManager.cs: this is the one that reads config.
2954 * WebConnectionGroup.cs: don't read config here.
2955 * WebConnection.cs: added the queue again. Launch queued requests on
2958 2003-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2960 * WebConnection.cs: the queue is now handled by the threadpool.
2961 Initialize the connection data in a place where it does not depend on
2962 the execution order of the requests in threadpool. More error handling.
2964 * WebConnectionGroup.cs: use the limits in the config file and reuse
2965 connections when the limit is reached.
2967 2003-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2969 * HttpWebRequest.cs: handle 304 a la MS.
2970 * WebConnection.cs: set the response data when reading 0 bytes.
2972 2003-09-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2974 * WebConnectionStream.cs: fix by Lluis to avoid the stream being in an
2977 2003-08-14 Nick Drochak <ndrochak@gol.com>
2979 * WebRequest.cs: Check lower case string since that is what we will add.
2981 2003-08-04 Jerome Laban <jlaban@wanadoo.fr>
2983 * IPHostEntry.cs: Default contructor must not initialize members.
2986 2003-07-27 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2988 * CredentialCache.cs: Removed undefined serializable attribute
2990 2003-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2993 (WantMore): true if we've not received the last chunk yet. Fixes
2994 bug #45463. Thanks to Miguel for tracking this down and providing a
2997 * WebConnection.cs: removed bogus ^M's.
2999 * WebHeaderCollection.cs: provide more info when the header or value is
3002 2003-07-15 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3004 * ChunkStream.cs: Removed unused members
3005 * IPAddress.cs: Removed unused exception variable, fixes compiler
3007 * WebConnection.cs: Removed unused exception variables, fixes compiler
3010 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
3012 * NetConfig.cs: If Clone method is not public, then it must use
3013 explicit interface method implementation syntax.
3015 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
3017 * Dns.cs: Reworked indentation.
3019 Added literal address checking in GetHostByAddress.
3020 Changed Dns.Resolve behavior.
3022 * IPEndPoint.cs: Added IPv6 support.
3023 * IPv6Address.cs: Added address compression.
3024 * NetConfig.cs: Added configuration section.
3026 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
3028 * ServicePoint.cs: Removed Connect and GetEndPoint methods.
3029 Removed reverse resolution when uri is literal IP address.
3030 * WebConnection.cs: IPv6 compatibility update: Try to connect
3031 to all addresses returned by IPHostEntry.
3032 * WebConnectionGroup.cs: Removed unused parameter.
3034 2003-07-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3036 * WebProxy.cs: Add serialization/ deserialization support
3038 2003-07-10 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3041 * WebStatus.cs: Deleted (do not exist in this assembly)
3042 * IPv6Address.cs: Made internal
3044 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3046 * HttpWebRequest.cs:
3047 * ServicePointManager.cs:
3048 * WebConnection.cs: added support for proxies.
3050 2003-07-05 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3052 * DnsPermissionAttribute.cs:
3053 * SocketPermissionAttribute.cs: Fixed wrong AttributeUsageAttribute
3055 2003-07-05 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3057 * WebPermission.cs: Added and partially implemented
3058 * WebPermissionAttribute.cs: Added and implemented
3060 2003-07-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3062 * WebClient.cs: fixed bug #45651.
3064 2003-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3066 * WebClient.cs: Small fix by Sebastian <scut@nb.in-berlin.de>.
3068 2003-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3070 * WebConnection.cs: fixed header writing the reusing a connection and
3071 the server does not send 100-continue response.
3073 2003-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3075 * WebConnection.cs: close the socket and connection when disposing.
3076 * WebRequest.cs: removed setter for RequestUri. Allow non-public ctors
3077 when creating instances.
3079 * HttpWebRequest.cs:
3080 * HttpWebResponse.cs:
3081 * FileWebRequest.cs: support serialization.
3083 * FileWebResponse.cs: support serialization and fixed dispose checks.
3085 * FileWebRequestCreator.cs:
3086 * HttpRequestCreator.cs: added internal .ctor.
3088 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
3090 * HttpWebRequest.cs: SetWriteStream(): SendRequestHeaders should be
3091 called before asyncWrite.SetCompleted, to make sure that the waiting
3092 thread does not start to send more information before
3093 SendRequestHeaders has finished.
3095 2003-06-22 Lluis Sanchez Gual <lluis@ximian.com>
3097 * WebConnectionStream.cs: Only increment pendingReads if an asynchronous
3098 read is really needed.
3100 2003-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3102 * WebHeaderCollection.cs: prevent duplication headers used niternally.
3104 2003-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3106 * HttpWebRequest.cs: if CookieContainer has not been set, make
3107 HttpWebResponse ignore Set-Cookie* headers.
3109 * HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if
3110 CookieContainer have been provided to the request.
3112 2003-06-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3114 * AuthenticationManager.cs: get the list of authentication modules from
3115 the configuration files. Added Clear and fixed Unregister.
3117 * BasicClient.cs: fully implemented.
3119 * HttpWebRequest.cs: added support for Basic authentication when
3120 credentials are set.
3122 * NetworkCredential.cs: fixed GetCredential.
3124 2003-06-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3126 * HttpWebRequest.cs: *really* take care of requestSent to prevent
3127 sending the same request twice.
3128 * WebAsyncResult.cs: don't close the handle. Just Reset.
3129 * WebConnectionStream.cs: removed unneeded line.
3131 2003-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3133 * HttpWebRequest.cs: use InternalClose when we are not going to send the
3134 rest of the request stream because of an error after sending the
3137 * WebConnection.cs: check for completion after setting the response.
3138 Enable reading in NextRead.
3140 * WebConnectionStream.cs: re-fixed the count for partially buffered
3141 reads. If the network stream returns 0 bytes, we're done.
3143 2003-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3145 * WebClient.cs: implemented UploadFile. Fixed SetupRequest to set the
3146 special headers *after* the others.
3148 2003-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3150 * WebConnectionStream.cs: when the read is partially filled from the
3151 initial buffer, add those bytes too. Thanks to Lluis for debugging this.
3153 2003-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3155 * HttpWebRequest.cs: added ExpectContinue property.
3156 * WebConnection.cs: allow 100 Continue to be delayed after waiting for
3159 2003-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3161 * HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
3162 is known not to respond to that.
3164 * ServicePoint.cs: added SendContinue property.
3166 * WebConnection.cs: only wait 2 seconds for a continue reply. If it
3167 timeouts, set SendContinue to false and proceeed sending data.
3169 * WebConnectionStream.cs: if 100-continue is not received and instead we
3170 get a 417 or anything else, don't send the data.
3172 * WebClient.cs: implemented all missing properties and methods except
3175 2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3177 * FileWebRequestCreator.cs: splitted from WebRequest.
3178 * HttpRequestCreator.cs: splitted fromWebRequest.
3179 * WebRequest.cs: added methods that are used by the new configuration
3180 handler to set prefix/type name requests creators.
3182 2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3184 * AuthenticationManager.cs:
3186 * BasicClient.cs: new file.
3187 * ChunkStream.cs: new file.
3189 * CookieContainer.cs:
3190 * GlobalProxySelection.cs:
3191 * HttpWebRequest.cs:
3192 * HttpWebResponse.cs:
3193 * IAuthenticationModule.cs:
3195 * ServicePointManager.cs:
3196 * WebAsyncResult.cs: new file.
3197 * WebConnection.cs: new file.
3198 * WebConnectionData.cs: new file.
3199 * WebConnectionGroup.cs: new file.
3200 * WebConnectionStream.cs: new file.
3202 * WebHeaderCollection.cs:
3206 Reworked HttpWebRequest and related classes.
3208 2003-05-30 Miguel de Icaza <miguel@ximian.com>
3210 * HttpWebRequest.cs (EndGetResponse): Do not throw exceptions on
3211 InternalServerError (500)
3213 2003-05-29 Miguel de Icaza <miguel@ximian.com>
3215 * HttpWebRequest.cs (Close): Move the code that accumulates the
3216 output to Close from Flush. Flush could have been called in the
3217 middle of the processing, and would have generated invalid results
3220 2003-05-23 Zoltan Varga <vargaz@freemail.hu>
3222 * Dns.cs (GetHostByAddress): Return the local host when called with
3225 2003-04-29 Miguel de Icaza <miguel@ximian.com>
3227 * WebClient.cs (DownloadData): Close the underlyng stream.
3228 (DownloadFile): Use using, so the file gets closed.
3230 2003-04-24 Miguel de Icaza <miguel@ximian.com>
3232 * WebClient.cs (DownloadData): Instead of using a MemoryStream,
3233 keep track of all the small chunks in an ArrayList. The
3234 MemoryStream had the property of reallocating itself, and the
3235 problem was that MemoryStream.GetBuffer would return the buffer
3236 (correctly), but not something of the right size. So clients of
3237 DownloadData would get the extra unused bytes as part of the
3240 The solution would have been to make another copy at this point,
3241 instead, we only keep the small allocations around in the
3242 ArrayList, and we only do one large allocation at the end.
3244 * HttpWebResponse.cs: If there is a Content-Length header, pass
3245 this information to our HttpWebResponseStream, so it knows when to
3246 stop, instead of waiting for the stream to be shut down by the
3249 * HttpWebRequest.cs: Only set the `delay-header-writing' mode on
3250 the underlying stream if the method will do a content transfer and
3251 no Content-Length was provided. If not (HEAD and GET or
3252 Content-Length provided), keep going.
3254 2003-04-23 Miguel de Icaza <miguel@ximian.com>
3256 * HttpWebRequest.cs: .NET Allows the HttpWebRequest to not have
3257 the ContentLength specified on the request. If that happens, we
3258 have to accumulate all the data written, and once we accumulate
3259 the data, we send it off.
3261 Notice that the documentation in .NET is actually incorrect, they
3262 state that setting ContentLength is mandatory. It is not.
3264 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3266 * HttpWebResponse.cs: fixes bug #41180.
3268 2003-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3270 * HttpWebRequest.cs: throw an exception is the response code is >= 300.
3272 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3274 * HttpWebRequest.cs: implemented IDisposable, make the request stream
3275 read only. Changed the way of disposing the socket.
3277 * HttpWebResponse.cs: wrapped the socket in a write-only NetworkStream,
3278 handle chunked transfer encoding (no more hangs), added serialization
3279 stuff, call CheckDisposed at the beginning of methods/properties (not
3280 in a finally clause).
3282 2003-02-17 Nick Drochak <ndrochak@gol.com>
3284 * WebClient.cs : Implemented Credentials property.
3286 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3288 * SocketAddress.cs: byte 1 of the data is the high byte of the family,
3291 2003-01-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3293 * WebClient.cs : hacked OpenRead, DownloadData and DownloadFile.
3295 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3297 * HttpWebRequest.cs: applied patch from Tim Haynes
3298 (thaynes@openlinksw.com).
3300 Avoided double-sending of the request to the server when both
3301 GetRequestStream() and GetResponse() are called.
3302 System Header attributes survive the Headers attribute set.
3303 Added handling of Connection: KeepAlive/Close
3305 2002-10-03 Dick Porter <dick@ximian.com>
3307 * Dns.cs: Fixed GetHostName()
3309 2002-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3311 * HttpWebRequest.cs:
3312 * HttpWebResponse.cs: applied another patch from Shahms E. King
3313 (shahms@shahms.com).
3315 2002-09-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3317 * HttpWebRequest.cs:
3318 * HttpWebResponse.cs: applied patch from Shahms E. King
3319 (shahms@shahms.com).
3321 2002-05-29 Lawrence Pit <loz@cable.a2000.nl>
3323 * MonoHttpDate.cs: added
3324 * HttpWebRequest.cs: using MonoHttpDate
3325 * HttpWebResponse.cs: using MonoHttpDate
3326 * DnsPermission.cs: correct XML output
3327 * SocketPermission.cs: correct XML output
3329 2002-05-21 Lawrence Pit <loz@cable.a2000.nl>
3331 * WebClient.cs: stubbed
3332 * WebProxy.cs: fixed bug; had to change internal representation
3333 of bypasslist to ArrayList, different implementation of checking
3336 2002-05-20 Lawrence Pit <loz@cable.a2000.nl>
3338 * WebProxy.cs: added, implemented
3339 * ServicePoint.cs: implemented most
3340 * ServicePointManager.cs: implemented
3341 * HttpWebRequest.cs: started implementation
3342 * HttpWebResponse.cs: improved disposable routines
3343 * FileWebRequest.cs: slight improvement of Close method
3345 2002-05-19 Lawrence Pit <loz@cable.a2000.nl>
3347 * FileWebRequest.cs: finished implementation of async methods.
3348 * FileWebResponse.cs: improved disposable routines.
3349 * IPEndPoint.cs: fixed bug #24666 in Serialize and Create methods,
3350 byte ordering of address was backwards.
3352 2002-05-13 Lawrence Pit <loz@cable.a2000.nl>
3354 * Dns.cs: Reimplemented (simplified and fixed) asynchronous methods by
3355 relying on standard asynchronous delegate features. Added checks for
3357 * HttpWebResponse.cs: implemented properties
3358 * FileWebResponse.cs: improved the way resources are disposed.
3359 * FileWebRequest.cs: started implementation of asynchronous methods
3360 * ServicePointManager.cs: implemented properties
3362 2002-05-12 Lawrence Pit <loz@cable.a2000.nl>
3364 * HttpWebRequest.cs: properties implemented
3365 * HttpWebResponse.cs: added
3366 * GlobalProxySelection.cs: implemented
3367 * FileWebResponse.cs: added
3368 * FileWebRequest.cs: some methods implemented
3370 2002-05-11 Lawrence Pit <loz@cable.a2000.nl>
3372 * WebHeaderCollection.cs: implemented
3373 * WebRequest.cs: implemented
3374 * FileWebRequest.cs and HttpWebRequest.cs stubs added
3376 2002-05-09 Lawrence Pit <loz@cable.a2000.nl>
3378 * Rewrote IPAddress.Parse method, passing all unit tests
3380 2002-05-09 Lawrence Pit <loz@cable.a2000.nl>
3382 * fixed bug in IPEndPoint.Equals method
3383 * fixed bug in IPAddress.Parse method
3384 * fixed bug in IPAddress.SwapLong method
3385 * fixed several bugs in Cookie.cs
3387 2002-05-06 Lawrence Pit <loz@cable.a2000.nl>
3389 * WebRequest.cs: added
3390 * WebResponse.cs: implemented
3391 * WebException.cs: implemented
3392 * WebHeaderCollection.cs: added
3393 * HttpVersion.cs: implemented
3394 * HttpContinueDelegate.cs: added
3395 * IWebProxy.cs: added
3396 * IWebRequestCreate.cs: added
3397 * ICertificatePolicy.cs: added
3398 * ServicePoint.cs: stubbed
3399 * ServicePointManager.cs: stubbed
3400 * CookieContainer.cs: added
3401 * Authorization.cs: implemented
3403 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
3405 * CredentialCache.cs: implemented
3407 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
3409 * IPAddress.cs: fixed IsLoopback, address was already in host order
3411 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
3413 * IPv6Address.cs: added (note: not part of .net spec)
3415 2002-05-01 Lawrence Pit <loz@cable.a2000.nl>
3417 * DnsPermission.cs: implemented
3418 * DnsPermissionAttribute.cs: implemented
3420 2002-04-28 Lawrence Pit <loz@cable.a2000.nl>
3422 * EndpointPermission.cs: implemented
3423 * SocketPermission.cs: implemented
3424 * SocketPermissionAttribute.cs: implemented
3425 * ProtocolViolationException.cs: implemented
3426 * Dns.c: passing w32 error code when no host found
3428 2002-04-27 Lawrence Pit <loz@cable.a2000.nl>
3430 * Cookie.cs: implemented
3431 * CookieCollection.cs: implemented
3432 * CookieException.cs: implemented
3434 2002-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3436 * IPAddress.cs: initialize the read only fields with Parse().
3438 2002-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3440 * IPAddress.cs: little changes to behave as MS.
3442 2002-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3444 * Dns.cs (Resolve): behave as MS. Agreed with Mads.
3446 2002-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3448 * IPAddress.cs: the icalls for sockets are endianness-aware. So I
3449 changed a few things. Also included a workaround for bug #23547.
3451 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3453 * IPAddress.cs: use System.BitConverter.IsLittleEndian (suggested
3454 by Paolo) instead of guessing the endianness.
3456 * SocketAddress.cs: implemented Equals() and GetHashcode().
3458 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3460 * IPEndPoint.cs: modifications to constructors according to the
3461 specifications (suggested by Lawrence Pit).
3463 2002-04-15 Patrik Torstensson <patrik.torstensson@labs2.com>
3465 * IPEndPoint.cs: Fixed build breaker.
3467 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3469 * IPEndPoint.cs: implemented Equals() and GetHashCode(). Now 100%
3472 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3474 * IPAddress.cs: finished all MonoTODO's. Use network order to store
3475 the address. Check for max and min values in Address:set. IsLoopback()
3476 returns now true for all 127.x.y.z. Some more checks in Parse ().
3477 Some changes to behave as MS does.
3479 2002-02-24 Duncan Mak <duncan@ximian.com>
3481 * ICredentialLookup.cs: Added the GetCredential method to the
3482 interface. The interface is named "ICredentials", should this file
3485 * NetworkCredential.cs: Added to CVS. Need to investigate on how
3486 GetCredential() works
3488 2002-01-23 Dick Porter <dick@ximian.com>
3490 * SocketAddress.cs: Implemented.
3492 * IPEndPoint.cs: Turned 'Address' field into a real property.
3493 Implemented Create() and Serialize() methods.
3495 * IPAddress.cs: Fixed class constructor, turned 'Address' field
3496 into a real property. Removed undocumented "public
3497 IPAddress(string)" constructor.
3499 * EndPoint.cs: Implemented. All methods return
3500 NotSupportedException to enforce subclass overriding.
3502 * Dns.cs: Replaced fixed-layout Hostent struct and cygwin
3503 P/Invokes with portable internal calls.
3505 2002-01-17 Miguel de Icaza <miguel@ximian.com>
3507 * Dns.cs: Updated to API changes.
3509 * IPAddress.cs: Updated API. Much left to implement.
3511 * Dns.cs: Remove IPToString method
3513 2002-01-06 Ravi Pratap <ravi@ximian.com>
3515 * Dns.cs, AuthenticationManager.cs, SocketAddress.cs : MonoTODO
3516 attribute insertion.
3518 2001-11-22 Nick Drochak <ndrochak@gol.com>
3520 * IPAddress.cs: Fix constructor bug, properly name Address property,
3521 and use triple-slash for comments.
3523 2001-11-20 Miguel de Icaza <miguel@ximian.com>
3525 * IPAddress.cs: Updated to contain Any, Broadcast, Loopback and
3526 None as suggested by Phillip.
3528 2001-09-26 Mads Pultz <mpultz@get2net.dk>
3529 * Dns.cs: Initial work on BeginGetHostByName and EndGetHostByName implemented.
3531 2001-09-24 Mads Pultz <mpultz@get2net.dk>
3533 * Dns.cs: Minor changes (some print statements removed)
3535 2001-09-23 Mads Pultz <mpultz@get2net.dk>
3537 * Dns.cs: Initial work submitted to repository.
3538 * IPHostEntry.cs: Initial work submitted to repository.
3540 2001-07-12 Sean MacIsaac <macisaac@ximian.com>
3542 * Authorization.cs: Fixed compiler error.
3544 * IAuthenticationModule.cs: Changes for Beta2.
3546 * IPAddress.cs: Internal storage changed to be uint not int.
3548 * IPEndPoint.cs: Fixed compiler error.
3550 * EndPoint.cs: Fixed compiler error.
3552 * AuthenticationManager.cs: Fixed typo.