1 2007-08-03 Jb Evain <jbevain@novell.com>
3 * Dns.cs: remove async methods for the 2.1 profile.
5 2007-07-17 Rodrigo Kumpera <rkumpera@novell.com>
7 * HttpListenerRequest.cs: Support for Cookie decoding.
8 * HttpListenerResponse.cs: Support for encoding cookies on the response sent to the client
9 * Cookie.cs: new internal method to encode the Cookie in a proper form to sent to clients
11 2007-07-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
13 * WebConnectionStream.cs: implement the CanTimeout for 2.0. Fixes
16 2007-07-12 Geoff Norton <gnorton@customerdna.com>
18 * HttpListenerContext.cs:
19 * HttpListener.cs: Handle HttpListener AuthenticationSchemes
20 Only Basic authentication is included for now.
22 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
24 * NetworkAccess.cs: Only mark as flags enum on 2.0.
26 2007-06-21 Dick Porter <dick@ximian.com>
28 * AuthenticationManager.cs:
37 * ServicePointManager.cs:
38 * HttpWebResponse.cs: Throw NotImplementedException indirectly, to
39 reduce noise in Moma reports.
41 2007-06-20 Atsushi Enomoto <atsushi@ximian.com>
43 * ServicePointManager.cs : (bootstrap) build fix.
45 2007-06-19 Dick Porter <dick@ximian.com>
47 * AuthenticationManager.cs:
59 * DecompressionMethods.cs:
61 * ProtocolViolationException.cs:
63 * ServicePointManager.cs:
66 * WebHeaderCollection.cs:
68 * WebExceptionStatus.cs: 2.0 profile updates
70 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
72 * WebConnectionStream.cs: On read timeout, throw WebException with
73 status Timeout instead of IOException.
75 2007-05-16 Adar Wesley <adarw@mainsoft.com>
77 * CookieCollection.cs: added missing method strongly typed CopyTo.
79 * CredentialCache.cs: added missing methods Add, Remove, GetCredential
81 * HttpWebRequest.jvm.cs: added missing ClientCertificates getter.
83 * ServicePoint.cs: added missing method CloseConnectionGroup.
85 * WebClient.cs: added missing methods OnDownloadProgressChanged,
86 OnUploadProgressChanged, GetWebRequest, GetWebResponse
88 * WebHeaderCollection.cs: added missing methods IsRestricted, Add,
91 * WebProxy.cs: added missing method GetObjectData.
93 2007-05-15 Marek Habersack <mhabersack@novell.com>
95 * HttpWebRequest.cs: fold all methods into GET for
96 redirect/moves. Fixes bug #81624
98 2007-05-07 Miguel de Icaza <miguel@novell.com>
100 Missing second part of the patch.
102 * WebHeaderCollection.cs: To be compatible with older versions of
103 Mono that might have serialized this in a different format, catch
104 the potential exception, and try the old name.
106 This should become a practice whenever we fix serialization in the
111 2007-04-23 Marek Habersack <mhabersack@novell.com>
113 * EndPointListener.cs: relax prefix matching to succeed in cases
114 when the prefix ends with / and the request path does not. Fixes
117 * CookieCollection.cs: added a SortByPath method to sort the
118 collection on demand.
120 * Cookie.cs: do not return "/" for Path if it wasn't set
123 * CookieContainer.cs: set cookie path only if its version is
124 "Netscape" and is null or empty. Fixes #81420.
125 Sort the collection by the path relevance before returning from
126 the GetCookies method. Fixes bug #81421.
128 2007-04-17 Joel Reed <joelwreed@gmail.com>
130 * WebHeaderCollection.cs: www-authenticate should be multivalue.
131 This fixes a bug related to RFC 2608 which says in section
132 "15.2 Offering a Choice of Authentication Schemes"
134 An HTTP/1.1 server may return multiple challenges with a 401
135 (Authenticate) response, and each challenge may use a different
136 scheme. The order of the challenges returned to the user agent is in
137 the order that the server would prefer they be chosen. The server
138 should order its challenges with the "most secure" authentication
139 scheme first. A user agent should choose as the challenge to be made
140 to the user the first one that the user agent understands.
142 Before this change, mono was choosing whatever was sent last,
143 which was the most insecure authentication option.
145 2007-04-10 Marek Habersack <mhabersack@novell.com>
147 * HttpListenerRequest.cs: do not include the query start marker
148 ('?') in the first variable name stored in the QueryString
149 collection. There is no HTTP header 'Accept-Types' in the
150 standard, there's only the 'Accept' header that specifies the
151 accepted MIME types. Fixes bug #81317
153 2007-03-25 Alan McGovern <alan.mcgovern@gmail.com>
155 * IPAddress.cs : Further optimisation for the Swap*** methods.
157 2007-03-24 Alan McGovern <alan.mcgovern@gmail.com>
159 * IPAddress.cs : Optimised the SwapInt and SwapLong methods.
161 2007-03-09 Miguel de Icaza <miguel@novell.com>
163 * FtpDataStream.cs: Close must be called on the stream before we
164 attempt to read a status code from the remote server.
166 Fixes FTP transfers to complete.
168 2007-03-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
170 * HttpWebRequest.cs: properly handle OPTIONS, which may or may not
171 have a request body. Fixes bug #80686.
173 2007-03-02 Marek Habersack <mhabersack@novell.com>
175 * WebClient.cs: Overwrite existing files on download, as
176 documented and as tested on MS.NET. Fixes Bug#81005
178 2007-02-24 Gert Driesen <drieseng@users.sourceforge.net>
180 * HttpWebRequest.cs: Allow Proxy to be set to null on 2.0 profile.
182 2007-02-18 Geoff Norton <gnorton@customerdna.com>
184 * AuthenticationManager.cs: Register the modules in the 2.0 profile
185 when we create the ArrayList.
187 2007-02-01 Gert Driesen <drieseng@users.sourceforge.net>
189 * WebProxy.cs: In IsBypassed, move address check back to satify unit
192 2007-01-30 Ilya Kharmatsky <ilyak -at- mainsoft.com>
194 * Dns.cs : implemented proper exception handling under TARGET_JVM
195 when trying to resolve not existing host.
197 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
199 * IPAddress.cs: Provide more meaningful exception message on 2.0
202 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
204 * FileWebRequest.cs: Fixed PreAuthenticate and Proxy properties to
205 no longer throw NotSupportedException. No longer store ContentLength
206 in headers. Do not allow null or zero-length method. Allow timeout
207 to be set to -1 (infine). Only disallow GET, HEAD and CONNECT requests.
208 Removed workarounds for bug #24943. In (Begin)GetRequest overwrite
209 file if it already exists. Binary serialization compatibility fixes.
210 * FileWebResponse.cs: Return application/octet-stream as ContentType.
212 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
214 * WebHeaderCollection.cs: Fixed binary serialization compatibility
217 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
219 * WebProxy.cs: Lazy init bypassList. Fixes for binary serialization
220 compatibility. Added stub for UseDefaultCredentials (2.0). On 2.0
221 profile, throw ArgumentNullException in IsBypassed if host is null.
223 2007-01-22 Miguel de Icaza <miguel@novell.com>
225 * HttpWebRequest.cs: Remove unused variable.
227 * FtpWebRequest.cs: Remove unused variable.
229 * WebHeaderCollection.cs: Remove a handful of NotImplementedException's
231 2007-01-11 Miguel de Icaza <miguel@novell.com>
233 * HttpListenerRequest.cs (SetRequestLine): Add validation for the
236 Allow any verbs to go through, not only
237 the white list of verbs.
241 2007-01-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
243 * RequestStream.cs: initialize the stream in both ctors. Fixes a couple
246 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
248 * HttpWebRequest.jvm.cs: Fixed line endings.
249 * HttpWebResponse.jvm.cs: Same.
250 * WebException.cs: Same.
251 * FtpWebRequest.cs: Same.
252 * VMWHttpProvider.jvm.cs: Same.
254 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
256 * DnsPermissionAttribute.cs: Fixed line endings.
257 * HttpVersion.cs: Same.
258 * FtpWebResponse.cs: Same.
259 * HttpContinueDelegate.cs: Same.
260 * FtpAsyncResult.cs: Same.
261 * EndpointPermission.cs: Same.
262 * IPv6Address.cs: Same.
263 * FtpDataStream.cs: Same.
264 * SocketPermission.cs: Same.
265 * FileWebRequest.cs: Same.
266 * FileWebResponse.cs: Same.
267 * DnsPermission.cs: Same.
268 * ProtocolViolationException.cs: Same.
269 * MonoHttpDate.cs: Same.
270 * SocketPermissionAttribute.cs: Same.
271 * CookieException.cs: Same.
272 * WebResponse.cs: Same.
273 * DefaultCertificatePolicy.cs: Same.
275 2006-12-28 Gert Driesen <drieseng@users.sourceforge.net>
277 * IPAddress.cs: On 1.1, 4-byte addresses are not supported in the
278 ctor. Added null checks for the address passed in the ctors.
280 2006-12-28 Miguel de Icaza <miguel@novell.com>
282 * IPAddress.cs: The condition in 1.1 was broken, it only allowed
283 16-byte addresses, and never 4-byte addresses (only 2.0 had
286 Keep a single code path.
288 Also, remove all the NET_1_1 defines, we realistically only
289 distinguish between 1.1 and 2.0, we wont likely support 1.0, 1.1
290 and 2.0, so remove the 1.0 vs 1.1 conditionals.
294 〓2006-12-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
296 * WebConnectionStream.cs: fix error in my last patch. Thanks to Felipe
299 2006-12-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
303 * WebConnectionStream.cs: detect errors writing headers earlier and
304 avoid race that showed up with SSL. Fixes bug #80234.
306 2006-12-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
308 * EndPointListener.cs:
311 * ChunkedInputStream.cs:
313 * RequestStream.cs: add initial support for HTTPS.
315 2006-12-18 Atsushi Enomoto <atsushi@ximian.com>
317 * FtpStatus.cs : The build gets broken when only-2.0 classes/members
318 are not excluded in 1.x build.
320 2006-12-18 David Elkind <davide@mainsoft.com>
322 * FtpAsyncResult.cs : FTP request is now working and covers about 100% of .NET API
323 * FtpDataStream.cs: FTP request is now working and covers about 100% of .NET API
324 * FtpWebRequest.cs: FTP request is now working and covers about 100% of .NET API
325 * FtpWebResponse.cs: FTP request is now working and covers about 100% of .NET API
326 * FtpStatus.cs: added composite status (includes status code and status description)
328 2006-12-04 Konstantin Triger <kostat@mainsoft.com>
330 * WebRequest.cs, WebResponse.cs: TARGET_JVM limitation workaround.
332 2006-12-04 Konstantin Triger <kostat@mainsoft.com>
334 * ServicePointManager.cs: correct assignment typo.
335 * ServicePoint.cs: Remove unneeded locks for getters, add internal setter.
337 2006-11-27 Miguel de Icaza <miguel@novell.com>
339 * WebRequest.cs: Instead of throwing NotImplemented exceptions,
340 call GetMustImplement, that way we do not need the whitelist, and
341 we save a handful of opcodes.
343 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
345 * HttpWebRequest.cs: add 2 more methods that are not supposed to have
346 a body. Fixes bug #80001.
348 2006-11-15 Andrew Skiba <andrews@mainsoft.com>
350 * WebHeaderCollection.cs: add stubs for new 2.0 properties.
352 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
354 * HttpWebResponse.cs: cookies are actually added to the request
355 container if any. Fixes bug #79821.
357 2006-11-02 Michael Hutchinson <m.j.hutchinson@gmail.com>
359 * WebRequest.cs: more closely follow MS behaviour: use system settings
360 unless told otherwise, and respect app.config.
362 2006-11-01 Michael Hutchinson <m.j.hutchinson@gmail.com>
364 * GlobalProxySelection.cs: Obsolete GlobalProxySelection under 2.0
365 profile, and move code to new property WebRequest.DefaultWebProxy.
366 * WebRequest.cs: Implement new 2.0 property DefaultWebProxy.
367 Add support for config option UseSystemDefault using simplistic
368 implementation of new 2.0 method GetSystemWebProxy ().
370 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
372 * FtpWebRequest.cs : more build fixes.
374 2006-10-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
376 * EndPointListener.cs: update comment and avoid exception when the
379 2006-10-30 Miguel de Icaza <miguel@novell.com>
381 * WebRequestMethods.cs: Another typo fix.
383 * ServicePointManager.cs: Set the default properly.
385 * SecurityProtocolType.cs: Remove non-existant defines.
387 2006-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
389 * HttpWebRequest.cs: internally allow buffer if it's not a known
390 GET-only method instead of enabling that only for POST/PUT. Fixes bug
393 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
395 * WebConnection.cs: TARGET_JVM
397 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
399 * WebException.cs: patch by Andrew Skiba that fixes serialization
400 compatibility with .NET and the default value for status.
402 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
406 2006-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
408 * CookieContainer.cs: send the cookies from the collection we got for
409 the given URI, not the whole collection.
410 * HttpWebResponse.cs: only add the cookies to this instance, not to the
411 cookie container set in the request.
413 2006-09-11 Sebastien Pouliot <sebastien@ximian.com>
415 * WebConnection.cs: Patch to remove the hack that was required for
416 using the older versions of the SSL/TLS classes. This hack is no more
417 required :-). Patch by Gonzalo Paniagua Javier.
419 2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
421 * HttpConnection.cs: when the content length is available, keep it
422 updated after synchronous read. Renamed 'available' to 'remaining_body'.
423 * RequestStream.cs: when creating the stream, pass the remaining length
424 starting from the offset in the buffer.
426 2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
428 * RequestStream.cs: make sure we return 0 when no more bytes left.
429 Paticularly, when we have a content length and the whole response is
432 2006-08-20 Miguel de Icaza <miguel@novell.com>
434 * RequestStream.cs (Read): A bug fix for #79112 and what I
435 consider to be an important change.
437 The bug fix is that we update the "available" variable as soon as
438 we consume data from Read, this means that a second call into Read
439 wont block. Available was only being updated on a secondary code
440 path, now we alwaysupdate it after using FillFromBuffer.
442 The second component is what I believe the right behavior should
443 be. There was a check for "if count > available" that set count
444 to available in that case. The idea was to limit the data read
445 from the buffer that belonged to this particular request, to allow
448 But this test was done after FillFromBuffer, which assumed that
449 all the data held in the buffer (the one used by FillFromBuffer)
450 must belong to the this request, and only future data did not.
452 I think my change is correct, but it assumes that the initialized
453 RequestStream will be used for other pipelined HTTP requests,
454 which is not something am 100% sure of, so Gonzalo needs to check
457 2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
459 * Cookie.cs: avoid nullref in GetHashCode and Equals.
461 2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
463 * CookieCollection.cs:
464 * CookieContainer.cs: remove expired cookies.
466 2006-07-07 Atsushi Enomoto <atsushi@ximian.com>
468 * Dns.cs : (GetHostEntry) when passed IP addresses, it does not issue
469 query to DNS. Patch by Petri Latvala.
471 2006-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
473 * CookieContainer.cs: don't send a secure cookie over an insecure
476 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
478 * WebProxy.cs: (IsBypassed) 'loopback', 'localhost' and any address
479 that starts with 127 are special.
481 2006-05-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
483 * HttpListener.cs: Fixes race condition in BeginGetContext. Patch by
484 Pawel Sakowski that fixes bug #78365.
486 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
488 * ServicePointManager.cs : oops, CONFIGURATION_DEP.
490 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
492 * GlobalProxySelection.cs : if corresponding config section is
493 DefaultProxySection then use it.
495 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
497 * WebRequest.cs : if corresponding config section is
498 WebRequestModulesSection then use it.
500 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
502 * ServicePointManager.cs : if corresponding config section is
503 ConnectionManagementSection then use it.
505 2006-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
508 * HttpListenerResponse.cs: allow 0 length POST. Patch by Horst Reiterer.
511 2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
513 * CredentialCache.cs: added DefaultNetworkCredentials.
515 2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
517 * NetworkCredential.cs: implement ICredentialsByHost interface.
519 2006-04-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
521 * WebConnection.cs: reset the challenge and the status code when
522 creating the tunnel and sending the proxy auth. headers. Improve error
523 message when there's an error creating the tunnel.
524 * HttpWebRequest.cs: don't trigger an early throw for a POST that gets
525 a 401 or 407 response.
527 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
529 * WebConnectionData.cs:
531 * HttpWebRequest.cs: when tunneling an ssl conneciton through a proxy,
532 we were not handling a proxy authentication request. Fixes bug #78150
535 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
537 * WebProxy.cs: a .ctor was not forwarding the 'credentials' argument.
538 This fixes bug #78150. Also fix the bypass check for local requests.
540 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
542 * WebProxy.cs: removed bogus ^M.
544 2006-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
546 * HttpWebResponse.cs: don't remove the Set-Cookie headers. Fixes bug
549 2006-04-04 Atsushi Enomoto <atsushi@ximian.com>
551 * WebClient.cs : added a bunch of async method support.
553 2006-04-03 Chris Toshok <toshok@ximian.com>
555 * HttpWebResponse.cs (ContentEncoding): return "" if the header
558 2006-03-30 Atsushi Enomoto <atsushi@ximian.com>
560 * DownloadStringCompletedEventHandler.cs : missing delegate.
562 2006-03-30 Atsushi Enomoto <atsushi@ximian.com>
564 * Dns.cs : minor argument renaming.
566 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
568 * DownloadDataCompletedEventArgs.cs
569 DownloadDataCompletedEventHandler.cs
570 DownloadProgressChangedEventArgs.cs
571 DownloadProgressChangedEventHandler.cs
572 DownloadStringCompletedEventArgs.cs
573 OpenReadCompletedEventArgs.cs
574 OpenReadCompletedEventHandler.cs
575 OpenWriteCompletedEventArgs.cs
576 OpenWriteCompletedEventHandler.cs
577 UploadDataCompletedEventArgs.cs
578 UploadDataCompletedEventHandler.cs
579 UploadFileCompletedEventArgs.cs
580 UploadFileCompletedEventHandler.cs
581 UploadProgressChangedEventArgs.cs
582 UploadProgressChangedEventHandler.cs
583 UploadStringCompletedEventArgs.cs
584 UploadStringCompletedEventHandler.cs
585 UploadValuesCompletedEventArgs.cs
586 UploadValuesCompletedEventHandler.cs : added 2.0 types.
588 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
590 * Dns.cs : filled missing NET_2_0 members.
592 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
594 * IPAddress.cs : ugh, I was testing with run-test-ondotnet, not
595 run-test. Those IPv6 properties needed to be reimplemented.
597 2006-03-27 Atsushi Enomoto <atsushi@ximian.com>
599 * IPAddress.cs : added NET_2_0 TryParse() and IPv6 related properties.
601 2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
603 * WebConnectionStream.cs: avoid Begin/EndWrite when the body length is
606 2006-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
608 * HttpWebRequest.cs: send the request if ContentLength is set for
609 POST/PUT, the request stream has that exact amount of bytes in it and
610 we're trying to get the response stream.
612 This way, closing the request stream is not needed in order to actually
613 send the request. Fixes bug #77753.
615 * WebConnectionStream.cs: throw if the number of bytes written is
616 greater than the specified request content length.
618 2006-03-11 Miguel de Icaza <miguel@novell.com>
620 * WebClient.cs: Only expose the right methods to avoid warnings.
622 * FtpDataStream.cs (Dispose): Fix signature.
624 * FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
625 like we are missing features here).
627 * IPAddress.cs: Move m_HashCode property to the end, and set
628 pragmas to disable warnings.
630 2006-02-16 Dick Porter <dick@ximian.com>
632 * IPEndPoint.cs: The SocketAddress AddressFamily takes up the
633 first two bytes, not just one. Check the size of the
634 SocketAddress buffer for IPv6 as well.
636 * Dns.cs: Cope when GetHostByName_internal or
637 GetHostByAddr_internal returns fewer items in the array than it
638 intended to (maybe due to conversion errors.)
640 2006-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
642 * FtpWebResponse.cs: Add UpdateStatus method, to update both
643 statusCode and statusDescription at the same time.
645 2006-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
647 * FtpWebRequest.cs: Remove WebExceptionStatus argument
648 from CreateExceptionFromResponse, since exceptions gotten
649 from server response always have a WebExceptionStatus.ProtocolError
652 2006-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
654 * FtpWebRequest.cs: Add renaming support when using
655 WebRequestMethods.Ftp.Rename method.
657 2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
659 * ChunkedInputStream.cs:
660 * ChunkStream.cs: handle partial trailers and zero reads. Patch by Pawel
663 2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
665 * HttpWebRequest.cs: don't send the expect-100 if if there's no content.
667 * HttpListenerRequest.cs:
669 * RequestStream.cs: use the content length header to avoid reading past
670 the end of the stream.
672 Patch by Horst Reiterer.
674 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
676 * FtpWebRequest.cs: Add supportedCommands array with the sorted
677 methods, to search using Array.BinarySearch. Remove CheckMethod.
679 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
681 * FtpWebRequest.cs: Fixed some typos and small issues.
683 2006-02-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
685 * HttpWebRequest.cs: dummy implementation of UnsafeAuthenticationBlah
688 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
690 * FtpRequestCreator.cs:
694 * FtpWebResponse.cs: Initial implementation of FtpWebRequest (2.0)
696 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
698 * FtpStatusCode.cs: Fix a typo.
700 2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
702 * WebClient.cs: (2.0) UploadString() returns string, not void.
704 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
706 * HttpWebResponse.cs: ignore non-integer values for max-age and version.
707 Fixes bug #77199. Thanks to Cyrille Colin.
709 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
711 * HttpWebResponse.cs: cope with malformed cookies with '=' as value.
712 Patch by Cyrille Colin. Fixes bug #77179.
714 2005-12-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
716 * FtpStatusCode.cs: New 2.0 enum.
718 2005-12-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
720 * CookieContainer.cs: fix matching of subdomains. Patch by Cyrille
723 2005-12-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
725 * HttpWebResponse.cs: don't loop forever when no name or value between
726 semicolons. Fixes bug #76943.
728 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
730 * HttpWebResponse.cs: don't fail if the cookie ends with a 'name'
731 without a value. Fixes bug #76922.
733 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
735 * EndPointListener.cs:
736 * HttpListenerRequest.cs: don't require the Host header for 1.0. Just
737 map that to the '*' or '+' host.
739 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
741 * IPAddress.cs: the byte[] ctor supports length 4 in .NET 2.0.
744 2005-11-21 Senganal T <tsenganal@novell.com>
746 * Dns.cs : corrected a mistake in GetHostEntry ()
748 2005-11-21 Senganal T <tsenganal@novell.com>
750 * Dns.cs : added GetHostEntry() method for 2.0 api conformance
752 2005-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
754 * HttpRequestHeader.cs: add missing values.
756 2005-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
758 * HttpListenerPrefixCollection.cs:
759 * HttpWebResponse.cs:
761 * HttpListenerRequest.cs:
763 * HttpListenerResponse.cs: a few signature fixes for 2.0.
765 2005-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
767 * HttpListenerPrefixCollection.cs:
768 * EndPointListener.cs:
769 * HttpStreamAsyncResult.cs:
770 * HttpListenerContext.cs:
771 * HttpListenerBasicIdentity.cs:
772 * AuthenticationSchemeSelector.cs:
774 * WebHeaderCollection.cs:
776 * HttpListenerException.cs:
777 * HttpResponseHeader.cs:
778 * EndPointManager.cs:
779 * HttpListenerRequest.cs:
780 * HttpRequestHeader.cs:
783 * ChunkedInputStream.cs:
785 * ListenerAsyncResult.cs:
789 * HttpListenerResponse.cs:
790 * RequestStream.cs: initial implementation of HttpListener. There are
791 a few TODOs left (cookies, HTTPS) but almost everything else is in.
793 2005-11-15 Sebastien Pouliot <sebastien@ximian.com>
795 * IPv6Address.cs: Added on overload to ToString to get a the full
796 length address returned (as required by System.Uri).
798 2005-11-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
800 * WebRequestMethods.cs: New 2.0 class.
802 2005-11-05 Atsushi Enomoto <atsushi@ximian.com>
804 * WebClient: use POST for DownloadData(). Fixed bug #76631.
806 2005-10-26 Atsushi Enomoto <atsushi@ximian.com>
808 * AuthenticationSchemes.cs : Fixed enum values and added [Flags].
810 2005-10-19 Atsushi Enomoto <atsushi@ximian.com>
812 * WebClient.cs : added net_2_0 DownloadString() and DownloadData()
813 with HTTP method as well.
815 2005-10-19 Atsushi Enomoto <atsushi@ximian.com>
817 * WebClient.cs : added UploadString() and Encoding (net_2_0). Added
818 some new overloaded stuff that takes Uri instead of string address.
820 2005-10-17 Sebastien Pouliot <sebastien@ximian.com>
822 * ICredentialPolicy.cs: New. Interface for 2.0.
824 2005-10-05 Atsushi Enomoto <atsushi@ximian.com>
826 * AuthenticationSchemes.cs : new 2.0 enum.
828 2005-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
830 * GlobalProxySelection.cs: remove double lock.
831 * HttpWebRequest.cs: remove double lock in GetServicePoint() and use
832 a private object when locking.
834 2005-07-15 Miguel de Icaza <miguel@novell.com>
836 * DigestClient.cs: Fix bug #75556, the qop argument must be
837 quoted, per http://www.faqs.org/rfcs/rfc2617.html section
840 2005-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
842 * WebConnectionStream.cs: initiate writing the body before trying to
843 read. This fixes the performance problems observed in web services.
846 2005-06-27 Lluis Sanchez Gual <lluis@novell.com>
848 * IPAddress.cs: Changed field names for the sake of serialization
849 interoperability with MS.NET.
851 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
853 * WebConnection.cs: if cnc.EndRead throws, mark the asyncresult as done.
854 * WebConnectionStream.cs: if we're done with the body of a chunk, don't
855 require the next chunk header to be there, as some servers might close
856 the connection (while also sending 'Connection: close').
858 2005-06-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
860 * HttpWebRequest.cs: MS implementation follows redirects for POST. Seems
861 to me that this is against 10.3.3 in RFC 2616, but may be the user
862 'authorization' to do this is implicit in AllowAutoRedirect...
864 2005-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
866 * WebConnection.cs: SslClientStream.BeginRead might not be asynchronous
867 if there's no record available to read. This is a workaround that makes
868 the call to BeginRead itself asynchronous. Fixes bug #75342.
870 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
874 * WebConnectionStream.cs: initiate the polling for input data after
875 sending the header so that we detect any response that the server sends
876 back even if we're still trying to write the request for a POST/PUT.
877 If we get the response (or an error) before any one calls GetResponse(),
878 keep it around instead of ignoring it.
880 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
882 * HttpWebRequest.cs: send the right header/user/password in
883 PreAuthenticate in presence of a proxy.
885 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
887 * IPv6Address.cs: fix IsLoopback. Closes bug #75128.
889 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
891 * IPv6Address.cs: don't do extra check on ipv4 if this is a ipv6
892 address. Fixes bug #75125.
894 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
896 * ServicePointManager.cs: when going through a proxy, use 2 different
897 service points depending on the scheme. Fixes bug #75135.
899 2005-05-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
901 * Dns.cs: don't parse the address when it comes from an IPAddress.
903 2005-05-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
905 * WebConnection.cs: prevent 2 nullrefs when the aborting during
906 Connect() and reset the status to Success before starting a new
909 2005-05-19 Sebastien Pouliot <sebastien@ximian.com>
911 * WebRequest.cs: Throw NotImplementedException (not NotSupported
912 Exception) for stuff that should have been abstract. No exception
913 is thrown by the serialization constructor.
915 2005-05-04 James Willcox <james@ximian.com>
917 * DigestClient.cs: convert to a hex string with "X8" consistently
920 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
922 * WebConnection.cs: don't rethrow errors in Write, as the error will be
923 received by GetResponse*. The result is that the threadpool thread doing
924 this will not end up printing the exception. Fixes bug #74817.
926 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
928 * ServicePoint.cs: HostEntry needs to be thread safe.
930 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
932 * WebConnection.cs: removed a 'slightly' important line by mistake.
933 * WebConnectionStream.cs: if the transfer encoding is chunked, ignore
934 content-length header if present.
936 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
938 * WebConnection.cs: no need to use an AutoResetEvent.
939 * WebConnectionStream.cs: don't start any more reads on the socket
940 after getting a 0 signalling the end. This fixes Ben's infamous foo.cs
943 2005-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
945 * BasicClient.cs: firefox/IE just send latin1, stripping the high byte
946 from unicode >= 256 characters.
948 2005-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
950 * BasicClient.cs: use latin1 when encoding the username/domain/password.
953 2005-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
955 * WebConnectionStream.cs: if the BeginRead/BeginWrite is completed
956 synchronously, no need to create the ManualResetEvent to wait on.
958 2005-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
960 * WebConnectionStream.cs: call SetComplete in EndWrite when we're not
961 buffering the request body. Fixes bug #74637.
963 * WebAsyncResult.cs: renamed field.
965 2005-04-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
967 * WebConnectionStream.cs:
968 * WebAsyncResult.cs: ensure we only call EndRead once per async. result.
969 Update total before invoking the callback when present.
971 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
974 * WebConnectionStream.cs: don't start reading until we've sent at least
975 the headers. This way we ensure that a Write happens before any Read,
976 which is needed by the SSL code.
978 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
980 * HttpWebRequest.cs: ensure we read everything before redirecting.
982 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
984 * WebConnectionStream.cs: provide a default callback when doing async.
985 read/write and waiting for a timeout so that the callback sets the
986 event and we don't block forever. Fixes bug #74539 take 3.
988 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
991 * HttpWebRequest.cs: now Abort() works properly. Fixes bug #74177.
993 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
995 * WebConnection.cs: fix some breakage from my last patch.
996 * WebConnectionStream.cs: invoke the callback when done even in EndRead.
998 2005-04-10 Sebastien Pouliot <sebastien@ximian.com>
1000 * WebConnection.cs: Added support for TrustFailure when throwing a
1001 WebException. Fix bug #74286.
1003 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1005 * HttpWebRequest.cs:
1006 * WebConnectionStream.cs: implemented support for ReadWriteTimeout.
1008 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1010 * WebConnection.cs: if we're reading chunked data and didn't use the
1011 stream to read, we gotta set the async. result as complete and invoke
1012 the callback. Don't call nstream.EndRead with the wrong IAsyncResult.
1014 * WebConnectionStream.cs: in EndRead, pass the correct IAsyncResult to
1015 cnc.EndRead. Lock on a field instead of 'this'.
1017 2005-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1019 * HttpWebRequest.cs: throw the exception if we got an error, as now
1020 it's catched in the redirection handling code.
1022 2005-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1024 * HttpWebRequest.cs: moved redirection handling to a proper place.
1026 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1028 * WebHeaderCollection.cs: added if-modified-since to the list of
1031 * ServicePoint.cs: use a field object when locking.
1033 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1035 * WebConnectionStream.cs: ForceCompletion actually calls NextRead. No
1036 need to wait for a Close/ReadAll when we have no content.
1038 2005-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1040 * NtlmClient.cs: fix typo in assembly name.
1042 2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1044 * CookieContainer.cs: adding to a CookieCollection might not increment
1045 the number of items if the cookie is replaced. Now Count works properly.
1046 Fixed an array index exception (typo).
1048 * CookieCollection.cs: also compare the version.
1050 * HttpWebResponse.cs: when we have cookies, add them to the request
1053 * HttpWebRequest.cs: changed last parameter of HttpWebResponse ctor.
1055 2005-03-30 Miguel de Icaza <miguel@novell.com>
1057 * Cookie.cs: Compare using the InvariantCulture, to match the
1058 behavior of CookieContainer that already did this.
1060 2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1062 * WebConnection.cs: we don't need to trigger the next queued request
1063 until the response is closed.
1065 2005-03-29 Miguel de Icaza <miguel@novell.com>
1067 * HttpWebResponse.cs: Handle quotations in the cookies values, per
1068 the spec http://www.faqs.org/rfcs/rfc2109.html, it is allowed to
1071 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1074 * DigestClient.cs: check that GetCredential() does not return null.
1076 2005-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1078 * BasicClient.cs: ensure credentials are not null.
1080 2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1082 * HttpWebResponse.cs: moved cookie parsing into its own class.
1083 * WebHeaderCollection.cs: remove (probably bogus) GetMultipleValues
1085 * HttpWebRequest.cs: don't let exception raised in the ctor of
1086 HttpWebResponse vanish.
1090 2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1092 * WebHeaderCollection.cs: handle commas inside quotes when splitting
1093 a multi-value header. Fixes bug #73151.
1095 2005-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1097 * DigestClient.cs: fix for digest auth. and URIs containing query. Patch
1098 by James Wilcox. Fixes bug #72571.
1100 2005-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1102 * HttpWebResponse.cs:
1104 * HttpWebRequest.cs:
1105 * WebConnectionStream.cs: don't read the entire response unless the
1106 user requests it. Fixes bug #72443.
1108 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
1110 * IPv6Address.cs: Fix endianess problems.
1112 * IPAddress.cs: Fix misleading comments.
1114 2005-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1116 * HttpWebRequest.cs: send the headers when we're supposed to write
1117 a POST/PUT but call GetResponse before GetRequestStream.
1119 * WebConnectionStream.cs: new RequestWritten property.
1121 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
1123 * EndpointPermission.cs: Fix IsSubsetof(hostname) so that the regression
1124 tests work. In particular, IsSubsetOf ("12.13.*.*", "12.13.14.*") failed
1125 because 14 wasn't a subset of * (which it is). Fix: if part1 is we
1126 continue to the next portion.
1128 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
1130 * IPAddress.cs (ParseIPV4): Fix so that the regression tests work. In
1131 particular, " foo" and ".1.1.6" weren't being caught (" foo" because it
1132 started with a space, and ".1.1.6" because the split string accepted a
1133 0-length portion, which would make 1...6 valid, but isn't valid based on
1134 similar test cases).
1136 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
1138 * WebHeaderCollection.cs: Fix GetValues(string) to split the values on
1139 commas if the header is a Multi-Value header. This matches
1140 MonoTests.System.Net.WebHeaderCollectionTest.
1142 2005-01-19 Sebastien Pouliot <sebastien@ximian.com>
1144 * WebPermissionAttribute.cs: Fixed NET_1_1 behaviour.
1146 2004-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1148 * WebConnectionStream.cs: remove unneeded check. Write detects and
1149 triggers the exception now.
1151 2004-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1153 * AuthenticationManager.cs: don't lock on a public Type.
1154 * HttpWebRequest.cs: read the error response for auth. errors.
1156 2004-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1158 * HttpWebRequest.cs: set webResponse back to null when redirecting.
1159 Fix the previous patch so that it reads the whole response even if
1160 auto-redirect is not enabled. Closes bug #70484.
1162 2004-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1164 * HttpWebResponse.cs: added ReadAll method.
1166 * WebConnection.cs: in HandleError, set the response error after
1167 closing the socket. Use an async. delegate to finish reading any prior
1168 WebConnectionStream.
1170 * HttpWebRequest.cs: for error responses that allow content, read the
1171 stream immediately. Fixes bug #70483.
1173 2004-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1175 * CookieContainer.cs: quote the port number.
1177 2004-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1180 * WebConnectionStream.cs: removed TryReconnect. It's no longer needed.
1182 2004-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1184 * WebConnection.cs: set the event in Close so that if the queue is
1185 empty, we won't block forever on next request. The finalizer was
1186 removed because we're not implementing IDisposable pattern here.
1188 2004-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1190 * WebConnection.cs: handle errors on chunked streams. Fixes bug #66858.
1191 * ChunkStream.cs: added error checking all over.
1193 * HttpWebRequest.cs: throw the exception received in SetResponseError
1194 if we already have a response.
1195 (SetRequestData): Don't nest the exception if it's a WebException.
1197 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1199 * WebConnection.cs: remove prevStream and don't set busy to false in
1200 HandleError. prevStream is not needed any more and setting 'busy' so
1201 early might let a request skip the queue.
1203 * WebConnectionGroup.cs: decrement the indexer when removing a dead
1204 reference from the arraylist.
1206 * WebConnectionStream.cs:
1207 (ReadAll): call NextRead if it has not been called before even when
1208 we have completed the request. Reuse the read buffer when reading a
1209 response of unknown size. Increase the buffer to 8kB.
1210 (BeginRead): increase pendingReads earlier and even when reading from
1211 the internal buffer.
1212 (EndRead): decrease pendingReads later and always.
1214 2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1216 * CookieContainer.cs: style, fixed checks for properties, implemented
1217 the MonoTODOs for the method that take an Uri. GetCookies and
1218 GetCookieHeaders now really return only the cookies that are requested
1219 filtering by the Uri parameter.
1221 * Cookie.cs: style, added default values for Comment, Domain and Port.
1223 2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1225 * CookieCollection.cs: reformatted, fixed Add by adding a new method to
1226 search across the arraylist, as list.IndexOf is not what we want.
1228 2004-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1230 * WebConnection.cs: check for FIN or RST on the socket before reusing.
1233 2004-11-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1235 * ChunkStream.cs: simplified condition for WantMore property.
1237 * WebConnection.cs: in Connect(), finish any pending reads we might
1238 have for chunked data. Ignore possible blank lines at the very
1239 beginning of the server response. Honor user set KeepAlive in
1240 HttpWebRequest for HTTP/1.1 connections. Thanks to Eyal Alayuf for
1241 his suggestions and code.
1243 2004-11-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1245 * HttpWebResponse.cs: don't lock up when the cookie received ends with
1246 a semicolon. Patch by Darryl VanDorp. Fixes bug #68956.
1248 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1250 * HttpWebRequest.cs: don't fail if the request has already been sent
1251 when accessing ContentType setter. Fixes bug #68848.
1253 2004-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1256 (WantMore): we're not done until we get a 0 chunk size and the trailer.
1257 The 0 can be expressed as more than one character too (ie, 000000).
1259 * HttpWebRequest.cs: new argument in SetResponseError.
1260 * WebConnection.cs: added argument to HandleError as a hint for
1262 (Connect): make the chunked stream be in the expected state when
1265 * WebConnectionStream.cs: removed unused method (ResetWriteBuffer).
1267 2004-10-10 David Sheldon <dave-mono@earth.li>
1269 * HttpWebRequest.cs: Use RemoveAndAdd for AddRange. Fixes unittest.
1271 2004-10-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1273 * HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
1274 * WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
1277 2004-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1279 * HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
1280 tunneling a secure connection.
1282 * ServicePoint.cs: added UseConnect property.
1284 * ServicePointManager.cs: set the UseConnect property when we use a http
1285 proxy for a https connection.
1287 * WebConnection.cs: setup the tunnled connection when using a proxy and
1290 2004-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1292 * HttpWebResponse.cs: remove unused SplitValue method.
1294 2004-09-10 Sebastien Pouliot <sebastien@ximian.com>
1296 * DnsPermission.cs: Updated to pass new unit tests.
1297 * DnsPermissionAttribute.cs: Cleanup.
1298 * SocketPermission.cs: Updated to pass new unit tests.
1299 * SocketPermissionAttribute.cs: Updated to pass new unit tests.
1300 * WebPermission.cs: Implemented some TODO - not complete yet.
1301 * WebPermissionAttribute.cs: Updated to pass new unit tests.
1303 2004-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1305 * Cookie.cs: don't fail when using default constructor. Fixes bug
1308 2004-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1310 * HttpWebResponse.cs: set-cookie and set-cookie2 can be present more
1311 than once and have multiple values. Don't rely on string.split when
1312 parsing cookie values.
1314 * WebHeaderCollection.cs: same thing for set-cookie and set-cookie2.
1315 Fixed GetValues (it was splitting values that contained a comma) and
1316 changed SetInternal to handle multi-value headers.
1320 2004-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1322 * WebProxy.cs: fix scheme detection. Patch by Konstantin Triger
1323 (kostat@mainsoft.com).
1325 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1327 * HttpWebRequest.cs: detect changes in scheme or port when redirecting.
1328 Fixes las take on bug 61218.
1330 2004-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1332 * WebConnection.cs: moved loading of the ssl stream Type to its own
1333 method. Don't create a new ssl stream if we're reusing the connection.
1335 * WebConnectionStream.cs: ensure the number of bytes copied in ReadAll
1336 is the expected even if the dta from the server has extra bytes.
1338 2004-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1341 * WebConnectionStream.cs: when the status code is 1xx, 204 or 304,
1342 "responses MUST NOT include a message-body". We tried to read the
1343 stream even when getting those codes and considered the 0 length
1346 2004-07-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1348 * HttpWebRequest.cs: removed bogus Monitor.Exit.
1349 * WebConnection.cs: use Address instead of RequestUri when checking for
1350 the scheme in order to select the stream type. Fixes bug #61218.
1352 2004-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1354 * ChunkStream.cs: added ChunkLeft property.
1356 (EndRead): when using small byte arrays to read from a chunked stream,
1357 ensure we've read the chunk size and try to fulfill the request
1358 completely. fixes bug 59653.
1360 2004-05-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1362 * WebConnectionStream.cs: fixed CanRead property. Closes bug #59273.
1364 2004-05-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1366 * DigestClient.cs: cache the sessions based on address and
1367 credentials, not only address. Added poor men's expiration to
1368 the session cache. Fixes bug #59202.
1370 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1374 * IPv6Address.cs: no more warnings about IPAddress.Address.
1376 2004-05-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1378 * WebException.cs: implemented serialization .ctor and
1381 2004-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1383 * WebAsyncResult.cs: don't create the WaitHandle if not needed.
1385 2004-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1387 * HttpWebRequest.cs: added 3 missing properties for 1.1. They are not
1390 * NetConfig.cs: added MaxResponseHeadersLength field.
1393 * ServicePointManager.cs: added missing properties for 1.1.
1395 2004-05-03 Sebastien Pouliot <sebastien@ximian.com>
1397 * WebConnection.cs: Use assembly name const to load Mono.Security.
1399 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1401 * NtlmClient.cs: Use assembly name const to load Mono.Security.
1403 2004-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1405 * WebConnectionStream.cs: avoid the exception when getting the content
1408 2004-03-29 Lluis Sanchez Gual <lluis@ximian.com>
1410 * HttpWebRequest.cs: Use a lock block instead of Monitor.Enter/Exit, so
1411 the lock is released in case of exception (for example, a
1412 ThreadAbortException). This also "fixes" bug #52417.
1413 Beware, this requires a runtime update (due to a bug in Monitor.Exit).
1414 * ServicePoint.cs: Changed method from internal to private, since it
1415 is not called from outside the class.
1417 2004-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1419 * HttpWebRequest.cs: added the exception status to the error message.
1420 * WebConnection.cs: add headers using SetInternal instead of Add to
1421 bypass header name validation. Fixes bug #55994.
1422 * WebHeaderCollection.cs: added SetInternal (string header).
1424 2004-03-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1427 * WebConnectionGroup.cs: the requests queue is now shared for all the
1428 connections belonging to the same connection group.
1430 2004-02-26 Sebastien Pouliot <sebastien@ximian.com>
1432 * DefaultCertificatePolicy.cs: New. Certificate validation
1433 policy compatible with the documented one present in Fx. It
1434 allows valid certificates and expired certificates to be used
1435 for SSL connections.
1436 * ServicePointManager.cs: Removed the DummyPolicy. Now creates
1437 a DefaultCertificatePolicy to validate certificates.
1439 2004-02-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1441 * ServicePoint.cs: SendContinue is always false for HTTP/1.0
1443 * WebConnection.cs: get rid of WaitForContinue() (yes!) and prevent
1444 calling more the ContinueDelegate more than once when we get the
1445 headers in several packets.
1447 * WebConnectionStream.cs: removed call to WaitForContinue.
1449 2004-02-25 Sebastien Pouliot <sebastien@ximian.com>
1451 * WebConnection.cs: Update previous patch to use HttpsClientStream
1452 (internal in Mono.Security assembly) in place of SslClientStream.
1453 This will reduce reflection and allow to use ICertificatePolicy.
1455 2004-02-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1457 * DigestClient.cs: fix quote handling. Reordered attributes in response.
1458 Fixed typo (QOP->CNonce). Now Digest works with apache2.
1460 2004-02-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1462 * DigestClient.cs: removed Console.
1463 * HttpWebRequest.cs: 401/407 were hanging for GET. Fixed.
1465 2004-02-24 Sebastien Pouliot <sebastien@ximian.com>
1467 * DigestClient.cs: Fixed issue with Apache server which do not use "
1468 for specifying the digest algorithm (.e.g. algorithm=MD5 not ="MD5").
1470 2004-02-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1472 * HttpWebRequest.cs: arghhh. I used the server response headers instead
1473 of what the client is supposed to send. Thanks to Helge Hess.
1475 2004-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1477 * AuthenticationManager.cs: implemented PreAuthenticate().
1479 * HttpWebRequest.cs: once we know the version of the server, use it if
1480 below the requested one. Remove 'Expect', 'Content-Length' and /or
1481 'Transfer-Encoding' if appropiate due to changes in version. Fixed
1482 'Host' header for non-standard ports. Support preauthentication. Closes
1485 2004-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1487 * HttpWebRequest.cs: check for missing or wrong URI in Location header
1490 * WebConnection.cs: if the data read does not contain all the headers,
1491 keep it around and read the rest until we get to the response body.
1492 Allow response code with no description. Fixed bug #54543.
1494 2004-02-18 Sebastien Pouliot <sebastien@ximian.com>
1496 * SecurityProtocolType.cs: Added missing [Serializable] to enum. Added
1497 Default and Ssl2 to NET_2_0 profile. Enum is now internal for NET_1_0
1498 profile (as we need it for SslClientStream).
1499 * ServicePoint.cs: Added internal SetCertificates(client,server).
1500 * ServicePointManager.cs: Added CheckCertificateRevocationList and
1501 CheckCertificateRevocationList static properties (public in 1.1,
1503 * WebConnection.cs: Dynamically creates a SslClientStream (from
1504 Mono.Security assembly) in case of https. Changed NetworkStream to
1507 2004-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1509 * HttpWebRequest.cs: send the 'Connection: keep-alive' header when we
1510 don't know the server version or it's 1.0.
1512 * ServicePoint.cs: added SetVersion.
1514 * WebAsyncResult.cs: remove ChunkAsyncResult.
1516 * WebConnection.cs: set the ServicePoint version when getting a response
1519 * WebConnectionStream.cs: when posting chunked content, send the head,
1520 body and trailer of the chunk at once instead of doing 3 separate
1521 writes, which may cause troubles.
1523 2004-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1525 * WebConnection.cs: if we get a 100 when we're not waiting for it, set
1526 that information in the ServicePoint.
1528 * WebConnectionStream.cs: send headers in the right order for
1531 2004-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1533 * WebConnectionStream.cs: fixed nullrefs in BeginWrite/EndWrite.
1535 2004-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1537 * HttpWebRequest.cs: on second and sucesive tries when authenticating,
1538 don't use chunked encoding for POST, as we know the content length and
1539 have the body. Nullify bodyBuffer always in CheckFinalStatus.
1541 * WebAsyncResult.cs: added ChunkAsyncResult property. It holds the
1542 IAsyncResult when writing CRLF at the end of a chunk.
1544 * WebConnectionStream.cs: support sending chunked data.
1546 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
1548 * HttpWebRequest.cs: When retrying a POST request after an
1549 authentication failure, resend the body. This fixes bug #51841.
1550 * WebConnectionStream.cs: Added properties for getting what's been
1553 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1555 * HttpWebRequest.cs: don't send 'Expect: 100-continue' for 1.0 version.
1557 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1559 * HttpWebRequest.cs: support proxy authentication.
1561 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1564 * DigestClient.cs: use IndexOf instead of StartsWith to deal with
1565 servers that provide several authentication schemas.
1567 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1569 * ChunkStream.cs: use an array of buffers instead of a MemoryStream for
1570 storing the chunks. This way, we won't miss traling data from the
1571 previous chunk when a new one is received before the other is fully
1574 2004-01-27 Nick Drochak <ndrochak@ieee.org>
1577 * HttpWebRequest.cs:
1581 * WebConnectionStream.cs: Remove unused variables thus eliminating some
1584 2004-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1586 * WebConnection.cs: patch by Yaacov Akiba Slama that fixes 100-continue
1587 handling for the case when the same packet also contains the actual
1590 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
1592 * HttpWebRequest.cs: Added missing property.
1594 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1596 * Dns.cs: don't block forever in EndResolve and EndGetHostByName. Fixes
1599 2004-01-16 Lluis Sanchez Gual <lluis@ximian.com>
1601 * ChunkStream.cs: The "size" parameter of Write is not the number of
1602 bytes to write, but the last offset to be written. Thus, in WriteAndRead
1603 Back, since "read" is not an offset but the number of bytes, it must be
1604 added to the offset. Maybe it would be a good idea to change the name of
1605 the parameter, since it is confusing. This should fix bug #52591.
1607 2004-01-12 Lluis Sanchez Gual <lluis@ximian.com>
1609 * WebConnection.cs: Yet another fix for WebConnection. This fixes
1612 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1614 * WebConnection.cs: Data.Init is a bad boy. Lluis realized. He also
1615 tidied up the end of ReadDone. Disabled relaunching the request if 2
1616 InitRead are called, since now we don't throw everything into
1617 RegisterWaitForSingleObject but one request at a time.
1619 * WebConnectionGroup.cs: when checking available connections, allow them
1620 not to be Connected but allocated to honor the connection limit.
1622 * WebConnectionStream.cs: CheckComplete() now checks for nextReadCalled
1623 too. ReadAll don't mess contentLength if it's provided in the headers.
1625 BIG thanks to Lluis. Turns out that we were debugging the same stuff and
1626 his Data.Init discovery was THE thing I was missing.
1630 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1632 * ServicePointManager.cs: use GetMaxConnections to get the appropiate
1633 number of connections limit.
1635 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1637 * MonoHttpDate.cs: use the invariant culture, not en-US. Suspected
1638 guilty for bug 52629.
1640 2003-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1642 * CredentialCache.cs: return null instead of throwing NotImplemented.
1644 2003-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1646 * HttpWebRequest.cs: fixed checking if method allows a body. Patch by
1647 Benjamin Jemlich (pcgod@gmx.net).
1649 2003-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1651 * HttpWebRequest.cs: deal with authentication schemes that have more
1652 than 1 round trip (Ntlm).
1654 2003-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1656 * NtlmClient.cs: new class that actually uses one from Mono.Http to do
1659 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1661 * HttpWebRequest.cs: when building the redirect URI, use the previous
1662 one as the base URI, which makes relative URIs work.
1664 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1666 * DigestClient.cs: merged in code from Sebastien Pouliot and Greg
1667 Reinacker that Supports cnonce and preauthentication.
1669 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1671 * DigestClient.cs: initial Digest authentication. Works with apache
1674 2003-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1676 * HttpWebRequest.cs: removed unneeded StringBuilder.
1677 * WebConnection.cs: default to keep the connection open for HTTP/1.1
1678 only or HTTP/1.0 + (Proxy-)Connection header. Fixes bug #51208.
1680 2003-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1682 * WebConnection.cs: turns out that socket.Connected is not useful until
1683 we actually try to send/receive data, even if the other end has already
1684 closed the socket. Added TryReconnect() and Connected.
1686 * WebConnectionData.cs: default value for StatusCode is 0 now.
1688 * WebConnectionGroup.cs: reuse the connection since the beginning,
1689 instead of opening up to ConnectionLimit and then reusing.
1691 * WebConnectionStream.cs: reopen the socket if we're trying to reuse
1692 one which fails on first write.
1694 2003-11-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1696 * WebConnectionStream.cs: when a callback is passed to BeginRead/Write,
1697 wrap it and do our job before calling it. Fixes bug #48497.
1699 2003-11-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1701 * WebExceptionStatus.cs: Restyled, Added .Net 1.1 members
1702 * SecurityProtocolType.cs: Added and implemented
1704 2003-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1706 * HttpWebRequest.cs: fixed redirects when they target another host.
1708 2003-11-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1710 * IPAddress.cs: prevent exceptions when trying to parse the static IPv6
1713 2003-10-17 Pedro Martinez Julia <yoros@wanadoo.es>
1715 * WebClient.cs: use Path.DirectorySeparator instead of "/" for
1716 windows compatibility. Add some checks for file paths like
1717 "C:/xxx/yyy/..." and like "/home/xxx/...".
1719 2003-10-16 Pedro Martinez Julia <yoros@wanadoo.es>
1721 * WebClient.cs: added a slash between directory and file names.
1723 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1725 * HttpWebRequest.cs:
1726 * HttpWebResponse.cs: better abort handling and leave the stream in a
1727 stable status on abort.
1729 2003-10-12 Pedro Martinez Julia <yoros@wanadoo.es>
1731 * WebClient.cs: refine reading of local files (like MS.NET).
1733 2003-10-10 Pedro Martinez Julia <yoros@wanadoo.es>
1735 * WebClient.cs: MS.NET works right when we try OpenRead("file.txt")
1736 but we didn't. Now, when Uri fails with an exception, it adds
1737 "file://" before the URI and tries again.
1739 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1741 * ServicePoint.cs: preparing for recycling. Not yet finished.
1742 * ServicePointManager.cs: this is the one that reads config.
1743 * WebConnectionGroup.cs: don't read config here.
1744 * WebConnection.cs: added the queue again. Launch queued requests on
1747 2003-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1749 * WebConnection.cs: the queue is now handled by the threadpool.
1750 Initialize the connection data in a place where it does not depend on
1751 the execution order of the requests in threadpool. More error handling.
1753 * WebConnectionGroup.cs: use the limits in the config file and reuse
1754 connections when the limit is reached.
1756 2003-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1758 * HttpWebRequest.cs: handle 304 a la MS.
1759 * WebConnection.cs: set the response data when reading 0 bytes.
1761 2003-09-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1763 * WebConnectionStream.cs: fix by Lluis to avoid the stream being in an
1766 2003-08-14 Nick Drochak <ndrochak@gol.com>
1768 * WebRequest.cs: Check lower case string since that is what we will add.
1770 2003-08-04 Jerome Laban <jlaban@wanadoo.fr>
1772 * IPHostEntry.cs: Default contructor must not initialize members.
1775 2003-07-27 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1777 * CredentialCache.cs: Removed undefined serializable attribute
1779 2003-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1782 (WantMore): true if we've not received the last chunk yet. Fixes
1783 bug #45463. Thanks to Miguel for tracking this down and providing a
1786 * WebConnection.cs: removed bogus ^M's.
1788 * WebHeaderCollection.cs: provide more info when the header or value is
1791 2003-07-15 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1793 * ChunkStream.cs: Removed unused members
1794 * IPAddress.cs: Removed unused exception variable, fixes compiler
1796 * WebConnection.cs: Removed unused exception variables, fixes compiler
1799 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
1801 * NetConfig.cs: If Clone method is not public, then it must use
1802 explicit interface method implementation syntax.
1804 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
1806 * Dns.cs: Reworked indentation.
1808 Added literal address checking in GetHostByAddress.
1809 Changed Dns.Resolve behavior.
1811 * IPEndPoint.cs: Added IPv6 support.
1812 * IPv6Address.cs: Added address compression.
1813 * NetConfig.cs: Added configuration section.
1815 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
1817 * ServicePoint.cs: Removed Connect and GetEndPoint methods.
1818 Removed reverse resolution when uri is literal IP address.
1819 * WebConnection.cs: IPv6 compatibility update: Try to connect
1820 to all addresses returned by IPHostEntry.
1821 * WebConnectionGroup.cs: Removed unused parameter.
1823 2003-07-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1825 * WebProxy.cs: Add serialization/ deserialization support
1827 2003-07-10 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1830 * WebStatus.cs: Deleted (do not exist in this assembly)
1831 * IPv6Address.cs: Made internal
1833 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1835 * HttpWebRequest.cs:
1836 * ServicePointManager.cs:
1837 * WebConnection.cs: added support for proxies.
1839 2003-07-05 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1841 * DnsPermissionAttribute.cs:
1842 * SocketPermissionAttribute.cs: Fixed wrong AttributeUsageAttribute
1844 2003-07-05 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1846 * WebPermission.cs: Added and partially implemented
1847 * WebPermissionAttribute.cs: Added and implemented
1849 2003-07-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1851 * WebClient.cs: fixed bug #45651.
1853 2003-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1855 * WebClient.cs: Small fix by Sebastian <scut@nb.in-berlin.de>.
1857 2003-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1859 * WebConnection.cs: fixed header writing the reusing a connection and
1860 the server does not send 100-continue response.
1862 2003-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1864 * WebConnection.cs: close the socket and connection when disposing.
1865 * WebRequest.cs: removed setter for RequestUri. Allow non-public ctors
1866 when creating instances.
1868 * HttpWebRequest.cs:
1869 * HttpWebResponse.cs:
1870 * FileWebRequest.cs: support serialization.
1872 * FileWebResponse.cs: support serialization and fixed dispose checks.
1874 * FileWebRequestCreator.cs:
1875 * HttpRequestCreator.cs: added internal .ctor.
1877 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
1879 * HttpWebRequest.cs: SetWriteStream(): SendRequestHeaders should be
1880 called before asyncWrite.SetCompleted, to make sure that the waiting
1881 thread does not start to send more information before
1882 SendRequestHeaders has finished.
1884 2003-06-22 Lluis Sanchez Gual <lluis@ximian.com>
1886 * WebConnectionStream.cs: Only increment pendingReads if an asynchronous
1887 read is really needed.
1889 2003-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1891 * WebHeaderCollection.cs: prevent duplication headers used niternally.
1893 2003-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1895 * HttpWebRequest.cs: if CookieContainer has not been set, make
1896 HttpWebResponse ignore Set-Cookie* headers.
1898 * HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if
1899 CookieContainer have been provided to the request.
1901 2003-06-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1903 * AuthenticationManager.cs: get the list of authentication modules from
1904 the configuration files. Added Clear and fixed Unregister.
1906 * BasicClient.cs: fully implemented.
1908 * HttpWebRequest.cs: added support for Basic authentication when
1909 credentials are set.
1911 * NetworkCredential.cs: fixed GetCredential.
1913 2003-06-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1915 * HttpWebRequest.cs: *really* take care of requestSent to prevent
1916 sending the same request twice.
1917 * WebAsyncResult.cs: don't close the handle. Just Reset.
1918 * WebConnectionStream.cs: removed unneeded line.
1920 2003-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1922 * HttpWebRequest.cs: use InternalClose when we are not going to send the
1923 rest of the request stream because of an error after sending the
1926 * WebConnection.cs: check for completion after setting the response.
1927 Enable reading in NextRead.
1929 * WebConnectionStream.cs: re-fixed the count for partially buffered
1930 reads. If the network stream returns 0 bytes, we're done.
1932 2003-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1934 * WebClient.cs: implemented UploadFile. Fixed SetupRequest to set the
1935 special headers *after* the others.
1937 2003-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1939 * WebConnectionStream.cs: when the read is partially filled from the
1940 initial buffer, add those bytes too. Thanks to Lluis for debugging this.
1942 2003-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1944 * HttpWebRequest.cs: added ExpectContinue property.
1945 * WebConnection.cs: allow 100 Continue to be delayed after waiting for
1948 2003-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1950 * HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
1951 is known not to respond to that.
1953 * ServicePoint.cs: added SendContinue property.
1955 * WebConnection.cs: only wait 2 seconds for a continue reply. If it
1956 timeouts, set SendContinue to false and proceeed sending data.
1958 * WebConnectionStream.cs: if 100-continue is not received and instead we
1959 get a 417 or anything else, don't send the data.
1961 * WebClient.cs: implemented all missing properties and methods except
1964 2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1966 * FileWebRequestCreator.cs: splitted from WebRequest.
1967 * HttpRequestCreator.cs: splitted fromWebRequest.
1968 * WebRequest.cs: added methods that are used by the new configuration
1969 handler to set prefix/type name requests creators.
1971 2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1973 * AuthenticationManager.cs:
1975 * BasicClient.cs: new file.
1976 * ChunkStream.cs: new file.
1978 * CookieContainer.cs:
1979 * GlobalProxySelection.cs:
1980 * HttpWebRequest.cs:
1981 * HttpWebResponse.cs:
1982 * IAuthenticationModule.cs:
1984 * ServicePointManager.cs:
1985 * WebAsyncResult.cs: new file.
1986 * WebConnection.cs: new file.
1987 * WebConnectionData.cs: new file.
1988 * WebConnectionGroup.cs: new file.
1989 * WebConnectionStream.cs: new file.
1991 * WebHeaderCollection.cs:
1995 Reworked HttpWebRequest and related classes.
1997 2003-05-30 Miguel de Icaza <miguel@ximian.com>
1999 * HttpWebRequest.cs (EndGetResponse): Do not throw exceptions on
2000 InternalServerError (500)
2002 2003-05-29 Miguel de Icaza <miguel@ximian.com>
2004 * HttpWebRequest.cs (Close): Move the code that accumulates the
2005 output to Close from Flush. Flush could have been called in the
2006 middle of the processing, and would have generated invalid results
2009 2003-05-23 Zoltan Varga <vargaz@freemail.hu>
2011 * Dns.cs (GetHostByAddress): Return the local host when called with
2014 2003-04-29 Miguel de Icaza <miguel@ximian.com>
2016 * WebClient.cs (DownloadData): Close the underlyng stream.
2017 (DownloadFile): Use using, so the file gets closed.
2019 2003-04-24 Miguel de Icaza <miguel@ximian.com>
2021 * WebClient.cs (DownloadData): Instead of using a MemoryStream,
2022 keep track of all the small chunks in an ArrayList. The
2023 MemoryStream had the property of reallocating itself, and the
2024 problem was that MemoryStream.GetBuffer would return the buffer
2025 (correctly), but not something of the right size. So clients of
2026 DownloadData would get the extra unused bytes as part of the
2029 The solution would have been to make another copy at this point,
2030 instead, we only keep the small allocations around in the
2031 ArrayList, and we only do one large allocation at the end.
2033 * HttpWebResponse.cs: If there is a Content-Length header, pass
2034 this information to our HttpWebResponseStream, so it knows when to
2035 stop, instead of waiting for the stream to be shut down by the
2038 * HttpWebRequest.cs: Only set the `delay-header-writing' mode on
2039 the underlying stream if the method will do a content transfer and
2040 no Content-Length was provided. If not (HEAD and GET or
2041 Content-Length provided), keep going.
2043 2003-04-23 Miguel de Icaza <miguel@ximian.com>
2045 * HttpWebRequest.cs: .NET Allows the HttpWebRequest to not have
2046 the ContentLength specified on the request. If that happens, we
2047 have to accumulate all the data written, and once we accumulate
2048 the data, we send it off.
2050 Notice that the documentation in .NET is actually incorrect, they
2051 state that setting ContentLength is mandatory. It is not.
2053 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2055 * HttpWebResponse.cs: fixes bug #41180.
2057 2003-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2059 * HttpWebRequest.cs: throw an exception is the response code is >= 300.
2061 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2063 * HttpWebRequest.cs: implemented IDisposable, make the request stream
2064 read only. Changed the way of disposing the socket.
2066 * HttpWebResponse.cs: wrapped the socket in a write-only NetworkStream,
2067 handle chunked transfer encoding (no more hangs), added serialization
2068 stuff, call CheckDisposed at the beginning of methods/properties (not
2069 in a finally clause).
2071 2003-02-17 Nick Drochak <ndrochak@gol.com>
2073 * WebClient.cs : Implemented Credentials property.
2075 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2077 * SocketAddress.cs: byte 1 of the data is the high byte of the family,
2080 2003-01-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2082 * WebClient.cs : hacked OpenRead, DownloadData and DownloadFile.
2084 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2086 * HttpWebRequest.cs: applied patch from Tim Haynes
2087 (thaynes@openlinksw.com).
2089 Avoided double-sending of the request to the server when both
2090 GetRequestStream() and GetResponse() are called.
2091 System Header attributes survive the Headers attribute set.
2092 Added handling of Connection: KeepAlive/Close
2094 2002-10-03 Dick Porter <dick@ximian.com>
2096 * Dns.cs: Fixed GetHostName()
2098 2002-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2100 * HttpWebRequest.cs:
2101 * HttpWebResponse.cs: applied another patch from Shahms E. King
2102 (shahms@shahms.com).
2104 2002-09-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2106 * HttpWebRequest.cs:
2107 * HttpWebResponse.cs: applied patch from Shahms E. King
2108 (shahms@shahms.com).
2110 2002-05-29 Lawrence Pit <loz@cable.a2000.nl>
2112 * MonoHttpDate.cs: added
2113 * HttpWebRequest.cs: using MonoHttpDate
2114 * HttpWebResponse.cs: using MonoHttpDate
2115 * DnsPermission.cs: correct XML output
2116 * SocketPermission.cs: correct XML output
2118 2002-05-21 Lawrence Pit <loz@cable.a2000.nl>
2120 * WebClient.cs: stubbed
2121 * WebProxy.cs: fixed bug; had to change internal representation
2122 of bypasslist to ArrayList, different implementation of checking
2125 2002-05-20 Lawrence Pit <loz@cable.a2000.nl>
2127 * WebProxy.cs: added, implemented
2128 * ServicePoint.cs: implemented most
2129 * ServicePointManager.cs: implemented
2130 * HttpWebRequest.cs: started implementation
2131 * HttpWebResponse.cs: improved disposable routines
2132 * FileWebRequest.cs: slight improvement of Close method
2134 2002-05-19 Lawrence Pit <loz@cable.a2000.nl>
2136 * FileWebRequest.cs: finished implementation of async methods.
2137 * FileWebResponse.cs: improved disposable routines.
2138 * IPEndPoint.cs: fixed bug #24666 in Serialize and Create methods,
2139 byte ordering of address was backwards.
2141 2002-05-13 Lawrence Pit <loz@cable.a2000.nl>
2143 * Dns.cs: Reimplemented (simplified and fixed) asynchronous methods by
2144 relying on standard asynchronous delegate features. Added checks for
2146 * HttpWebResponse.cs: implemented properties
2147 * FileWebResponse.cs: improved the way resources are disposed.
2148 * FileWebRequest.cs: started implementation of asynchronous methods
2149 * ServicePointManager.cs: implemented properties
2151 2002-05-12 Lawrence Pit <loz@cable.a2000.nl>
2153 * HttpWebRequest.cs: properties implemented
2154 * HttpWebResponse.cs: added
2155 * GlobalProxySelection.cs: implemented
2156 * FileWebResponse.cs: added
2157 * FileWebRequest.cs: some methods implemented
2159 2002-05-11 Lawrence Pit <loz@cable.a2000.nl>
2161 * WebHeaderCollection.cs: implemented
2162 * WebRequest.cs: implemented
2163 * FileWebRequest.cs and HttpWebRequest.cs stubs added
2165 2002-05-09 Lawrence Pit <loz@cable.a2000.nl>
2167 * Rewrote IPAddress.Parse method, passing all unit tests
2169 2002-05-09 Lawrence Pit <loz@cable.a2000.nl>
2171 * fixed bug in IPEndPoint.Equals method
2172 * fixed bug in IPAddress.Parse method
2173 * fixed bug in IPAddress.SwapLong method
2174 * fixed several bugs in Cookie.cs
2176 2002-05-06 Lawrence Pit <loz@cable.a2000.nl>
2178 * WebRequest.cs: added
2179 * WebResponse.cs: implemented
2180 * WebException.cs: implemented
2181 * WebHeaderCollection.cs: added
2182 * HttpVersion.cs: implemented
2183 * HttpContinueDelegate.cs: added
2184 * IWebProxy.cs: added
2185 * IWebRequestCreate.cs: added
2186 * ICertificatePolicy.cs: added
2187 * ServicePoint.cs: stubbed
2188 * ServicePointManager.cs: stubbed
2189 * CookieContainer.cs: added
2190 * Authorization.cs: implemented
2192 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
2194 * CredentialCache.cs: implemented
2196 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
2198 * IPAddress.cs: fixed IsLoopback, address was already in host order
2200 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
2202 * IPv6Address.cs: added (note: not part of .net spec)
2204 2002-05-01 Lawrence Pit <loz@cable.a2000.nl>
2206 * DnsPermission.cs: implemented
2207 * DnsPermissionAttribute.cs: implemented
2209 2002-04-28 Lawrence Pit <loz@cable.a2000.nl>
2211 * EndpointPermission.cs: implemented
2212 * SocketPermission.cs: implemented
2213 * SocketPermissionAttribute.cs: implemented
2214 * ProtocolViolationException.cs: implemented
2215 * Dns.c: passing w32 error code when no host found
2217 2002-04-27 Lawrence Pit <loz@cable.a2000.nl>
2219 * Cookie.cs: implemented
2220 * CookieCollection.cs: implemented
2221 * CookieException.cs: implemented
2223 2002-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2225 * IPAddress.cs: initialize the read only fields with Parse().
2227 2002-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2229 * IPAddress.cs: little changes to behave as MS.
2231 2002-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2233 * Dns.cs (Resolve): behave as MS. Agreed with Mads.
2235 2002-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2237 * IPAddress.cs: the icalls for sockets are endianness-aware. So I
2238 changed a few things. Also included a workaround for bug #23547.
2240 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2242 * IPAddress.cs: use System.BitConverter.IsLittleEndian (suggested
2243 by Paolo) instead of guessing the endianness.
2245 * SocketAddress.cs: implemented Equals() and GetHashcode().
2247 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2249 * IPEndPoint.cs: modifications to constructors according to the
2250 specifications (suggested by Lawrence Pit).
2252 2002-04-15 Patrik Torstensson <patrik.torstensson@labs2.com>
2254 * IPEndPoint.cs: Fixed build breaker.
2256 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2258 * IPEndPoint.cs: implemented Equals() and GetHashCode(). Now 100%
2261 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2263 * IPAddress.cs: finished all MonoTODO's. Use network order to store
2264 the address. Check for max and min values in Address:set. IsLoopback()
2265 returns now true for all 127.x.y.z. Some more checks in Parse ().
2266 Some changes to behave as MS does.
2268 2002-02-24 Duncan Mak <duncan@ximian.com>
2270 * ICredentialLookup.cs: Added the GetCredential method to the
2271 interface. The interface is named "ICredentials", should this file
2274 * NetworkCredential.cs: Added to CVS. Need to investigate on how
2275 GetCredential() works
2277 2002-01-23 Dick Porter <dick@ximian.com>
2279 * SocketAddress.cs: Implemented.
2281 * IPEndPoint.cs: Turned 'Address' field into a real property.
2282 Implemented Create() and Serialize() methods.
2284 * IPAddress.cs: Fixed class constructor, turned 'Address' field
2285 into a real property. Removed undocumented "public
2286 IPAddress(string)" constructor.
2288 * EndPoint.cs: Implemented. All methods return
2289 NotSupportedException to enforce subclass overriding.
2291 * Dns.cs: Replaced fixed-layout Hostent struct and cygwin
2292 P/Invokes with portable internal calls.
2294 2002-01-17 Miguel de Icaza <miguel@ximian.com>
2296 * Dns.cs: Updated to API changes.
2298 * IPAddress.cs: Updated API. Much left to implement.
2300 * Dns.cs: Remove IPToString method
2302 2002-01-06 Ravi Pratap <ravi@ximian.com>
2304 * Dns.cs, AuthenticationManager.cs, SocketAddress.cs : MonoTODO
2305 attribute insertion.
2307 2001-11-22 Nick Drochak <ndrochak@gol.com>
2309 * IPAddress.cs: Fix constructor bug, properly name Address property,
2310 and use triple-slash for comments.
2312 2001-11-20 Miguel de Icaza <miguel@ximian.com>
2314 * IPAddress.cs: Updated to contain Any, Broadcast, Loopback and
2315 None as suggested by Phillip.
2317 2001-09-26 Mads Pultz <mpultz@get2net.dk>
2318 * Dns.cs: Initial work on BeginGetHostByName and EndGetHostByName implemented.
2320 2001-09-24 Mads Pultz <mpultz@get2net.dk>
2322 * Dns.cs: Minor changes (some print statements removed)
2324 2001-09-23 Mads Pultz <mpultz@get2net.dk>
2326 * Dns.cs: Initial work submitted to repository.
2327 * IPHostEntry.cs: Initial work submitted to repository.
2329 2001-07-12 Sean MacIsaac <macisaac@ximian.com>
2331 * Authorization.cs: Fixed compiler error.
2333 * IAuthenticationModule.cs: Changes for Beta2.
2335 * IPAddress.cs: Internal storage changed to be uint not int.
2337 * IPEndPoint.cs: Fixed compiler error.
2339 * EndPoint.cs: Fixed compiler error.
2341 * AuthenticationManager.cs: Fixed typo.