2 2009-01-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
4 * FtpWebRequest.cs: now deleting a file works when we're not in the
7 2008-12-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
9 * IPAddress.cs: avoid throwing when parsing a subnet.
11 2008-11-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
13 * HttpConnection.cs: remove CWL. When reusing, BeginReadRequest might
14 throw if the client closes.
15 * HttpListenerResponse.cs: close the connection for 1.0 clients.
17 2008-11-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
19 * FtpDataStream.cs: use the socket for reading until the end of a
20 stream that wasn't read entirely. Remove unused ManualResetEvent.
21 * FtpWebRequest.cs: set the file_name when downloading. Update the
22 response status after every SendCommand. Send a "OPTS utf8 on" as MS
23 does (the control cnc reader should do something with UTF8)
25 2008-11-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
27 * WebRequest.cs: if the cache level is NoCacheNoStore, don't throw
28 when setting the CachePolicy.
30 2008-11-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
32 * FtpWebRequest.cs: take the server current directory into account
33 when uploading files. Set the data connection type before every
37 2008-10-31 Gonzalo Paniagua Javier <gonzalo@novell.com>
39 * FtpWebRequest.cs: disable keep-alive connections as the current code
40 does not deal with keep-alive connections.
41 Workaround for bug #380262.
43 2008-10-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
45 * WebConnectionStream.cs: when there's a NTLM authentication in
46 progress, don't let the connection be used by the next request if we
47 have the entire response in the input buffer.
49 2008-10-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
51 * HttpListenerResponse.cs: removed obsolete comment.
52 * ResponseStream.cs: don't read response.SendChunked until after
53 getting the response headers.
55 2008-10-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
57 * ServicePointManager.cs: set the default limit of connections from
58 the configuration file(s) on startup.
61 2008-10-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
63 * HttpWebRequest.cs: don't call ProxyRequest twice.
64 * WebConnectionData.cs: remove unused fields.
67 * WebConnectionStream.cs: when setting the input buffer, check to see
68 if the entire response is already there and free up the request slot.
72 * HttpListenerResponse.cs: buffer the headers so that they are sent
73 together with the data on the first Write (if any). The fix above
74 didn't work with our HttpListener without this.
76 2008-10-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
80 * WebConnectionGroup.cs:
82 * WebConnectionStream.cs: reuse the same connection when doing NTLM
83 authentication. Fixes bug #323375.
84 Implemented support for UnsafeAuthenticatedConnectionSharing.
86 2008-10-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
89 * HttpListenerResponse.cs: fix typo that caused the "connection close"
90 header to be sent. Do not close the socket when the encoding is not
91 chunked and reuse is possible.
94 2008-10-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
96 * HttpWebRequest.cs: if GetRequestStream has already been called,
97 return the same stream that we returned in the first call.
100 2008-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
102 * ServicePointManager.cs: better handling of possible collisions of the
103 hash for schema/host/port. Fixes bug #417891.
105 2008-10-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
107 * ChunkStream.cs: (ReadTrailer) make sure the array access is not out
108 of bounds. Fixes bug #322715.
110 2008-09-19 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
112 * WebConnectionStream.cs: when receiving a 0 content-length, free up
113 the slot for the next request immediately.
116 2008-09-16 Miguel de Icaza <miguel@novell.com>
118 * IPv6Address.cs: On the 2.0 profile, avoid throwing/catching
119 exceptions inside TryParse.
121 2008-09-12 Miguel de Icaza <miguel@novell.com>
123 * HttpListenerPrefixCollection.cs, EndPointListener.cs,
124 HttpListener.cs, EndPointManager.cs, HttpConnection.cs: Remove
125 generics support where necessary to allow this code to be reused
128 2008-09-08 Miguel de Icaza <miguel@novell.com>
130 * EndPointListener.cs (SearchListener): Cope with the raw_url not
131 being merely a path, but potentially a full URI (see the proxy
134 * HttpListenerRequest.cs: Cope with raw_url not being merely a
135 path, but potentially a full Uri. Also uses TryCreate, hoping
136 that one day it will be faster.
138 2008-08-23 Zoltan Varga <vargaz@gmail.com>
140 * WebConnectionStream.cs (WriteRequest): Fix the copying in the
141 previous patch, when bytes.Length != length.
143 2008-08-22 Zoltan Varga <vargaz@gmail.com>
145 * WebConnectionStream.cs (WriteRequest): For small requests,
146 cluster together the header + body in a single write call, avoids
147 the latency problems observed in an TLS application that makes
148 many web service calls.
150 2008-08-22 Geoff Norton <gnorton@novell.com>
152 * WebConnection.cs: Set NoDelay
154 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
156 * OpenReadCompletedEventArgs.cs: new Address property for 2.1
158 2008-08-06 Miguel de Icaza <miguel@novell.com>
160 * IPAddress.cs (ParseIPV6): Use an exception-less parser for ipv6
163 * IPv6Address.cs: Rewrite most of the parsing code to not use that
164 incredibly fragile, hacky and hacky implementation.
166 (TryParse): Provide a exception-less parsing path.
168 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>µ
170 2008-08-06 Atsushi Enomoto <atsushi@ximian.com>
172 * IPAddress.cs : several IPv4 parsing fix exposed by bug #411920.
174 2008-08-05 Atsushi Enomoto <atsushi@ximian.com>
176 * WebClient.cs : it should not invoke delegate directly, but should
177 call overridable OnDownloadProgressChanged.
179 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>μ
181 * HttpWebResponse.cs: Initialize contentLength in ctor, as it must
182 remain accessible after the response is disposed (and the headers are
183 no longer available). Adding missing disposed checks in properties
184 (except for StatusCode) and GetResponseHeader. On the 2.0 profile,
185 headers must remain accessible after the HttpWebResponse is disposed.
187 2008-06-10 Stephane Delcroix <sdelcroix@novell.com>
189 * IPAddress.cs: allow usage on 2.1 as smcs knows nothing about
190 string.GetEnumerator : IEnumerable<char>
192 2008-06-08 Miguel de Icaza <miguel@novell.com>
194 * ResponseStream.cs: Do not Close the HttpResponse object here as
195 it is possible to issue multiple OutputStream.Close calls (they
196 actually happen implicitly through things like StreamWriter.Close,
197 and they are in various MSDN samples).
199 2008-05-28 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
201 * CookieContainer.cs: apply slightly modified patch from rulatir@wp.pl
202 that fixes bug #356537.
204 2008-04-30 Miguel de Icaza <miguel@novell.com>
206 * WebPermission.cs (ToXml): To allow code that uses WebPermission
209 2008-04-21 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
211 * HttpWebResponse.cs: do not check the disposed status for properties
212 and methods that return response data other than the stream itself.
215 2008-04-16 Marek Habersack <mhabersack@novell.com>
217 * HttpWebRequest.cs: fix an off-by-one bug - the number of
218 redirects must not exceed the value of
219 MaximumAutomaticRedirections. Fixes bug #380131
221 2008-04-13 Jb Evain <jbevain@novell.com>
223 * *_2_1.cs: move the specific 2.1 System.Net code to the
226 2008-04-13 Jb Evain <jbevain@novell.com>
228 * WebRequest_2_1.cs, WebResponse_2_1.cs: new files
229 * HttpWebRequest_2_1.cs, HttpWebResponse_2_1, WebHeaderCollection_2_1:
230 update to Silverlight 2.0b1 API.
231 Merged from the Moonlight 2 branch.
233 2008-04-06 <gnorton@novell.com>
235 * ListenerAsyncContext.cs: Fix Basic authentication support. Patch from
236 Maciej Paszta <paszczi@go2.pl>
238 2008-02-21 Zoltan Varga <vargaz@gmail.com>
240 * HttpConnection.cs (Close): Close the socket even if Shutdown throws an exception.
242 2008-02-17 Daniel Nauck <dna@mono-project.de>
244 * HttpWebResponse.cs: refactored cookie expires parsing to
245 allow all common expires datetime formats.
247 2008-02-09 Daniel Nauck <dna@mono-project.de>
249 * HttpWebResponse.cs: convert UTC/GMT Expires DateTime from a cookie
250 into local time, also set the HttpOnly property if available.
252 2008-02-09 Daniel Nauck <dna@mono-project.de>
254 * Cookie.cs: implemented HttpOnly
256 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
258 * IPAddress.cs (Parse): Changed argument name to match MS.
259 (TryParse): Changed argument name to match MS.
260 (ParseIPV4): Only treat zero-length or " " address as empty on 1.0
261 profile. On 2.0 profile, only ignore characters after blank if last
262 part is valid hex string.
263 * IPv6Address.cs: Removed extra spaces and tabs.
265 2008-01-26 Daniel Nauck <dna@mono-project.de>
267 * HttpWebRequest.cs: fixed typo. Use the actual uri for correct
268 cookie header informations and not the originally one.
270 2008-01-26 Daniel Nauck <dna@mono-project.de>
272 * Cookie.cs: set Version to '1' if Port is set,
273 don't include path and domain informations when version is 0,
274 match ToString () output with .NET 2.0,
277 2008-01-15 Atsushi Enomoto <atsushi@ximian.com>
279 * MonoHttpDate.cs : Parse() should return Local time. Fixed bug
282 2008-01-12 Gert Driesen <drieseng@users.sourceforge.net>
284 * WebClient.cs: Do not add trailing CRLF in UploadValuesCore. Fixes
285 standalone test for bug #351049.
287 2008-01-07 Sebastien Pouliot <sebastien@ximian.com>
289 * CredentialCache.cs: Gendarme's AvoidToStringOnStringsRule in
290 CredentialCacheKey constructor. UseStringEmptyRule on CredentialCache
291 static ctor (3 times).
293 2007-12-27 Miguel de Icaza <miguel@novell.com>
295 * WebClient.cs: We catch exceptions that happen on the helper
296 async threads toa void terminating the application on errors, and
297 also raise a variant of the OnXXXXCompleted methods that take an
300 Note that this differs from the .NET implementation in that
301 we actually raise a signal on error, and set the exception, and in
302 their case no error is ever raised.
304 We now call CompleteAsync in the OnXXXCompleted handlers to ensure
305 that the WebClient can be reused immediately by the callback.
309 This also should fix the bug report on IRC where someone
310 complained that they could not "chain" invocations to XXXAsync
311 methods from the OnXXXXCompleted handlers due to the WebClient
312 refusing to work if there was an ongoing operation
314 2007-12-24 Miguel de Icaza <miguel@novell.com>
316 * WebClient.cs: Do not validate method to be null, we do not do
317 that in OpenWrite, the detection is done later on.
321 2007-12-16 Miguel de Icaza <miguel@novell.com>
323 * WebClient.cs: Got the arguments in the wrong order, fix
325 2007-12-12 Marek Habersack <mhabersack@novell.com>
327 * WebClient.cs: DownloadProgressChanged is available only in the
330 2007-12-12 Miguel de Icaza <miguel@novell.com>
332 * WebClient.cs (DownloadFileCore): use longs for the
333 ContentLength, although the other code (loading into a byte array,
334 or a string) still uses ints, the DownloadFileCore should not.
336 2007-12-11 Miguel de Icaza <miguel@novell.com>
340 Lots of fixes to get the *Async methods to work.
342 * WebClient.cs: async, new boolean flag, used to track whether we
343 are an async invocation, and if so, we need to invoke some
346 Switch to using System.Threading.Thread instead of the ThreadPool
347 as there is no way with the ThreadPool to abort threads (to
348 implemente CancelAsync).
350 (CompleteAsync): Helper method used to clear the state after an
351 async operation completes, otherwise the WebClient can only be
354 (CancelAsync): Use Thread.Interrupt to signal the thread that we
355 are aborting it (it is a lot milder than Thread.Abort, and we are
356 in no rush to cancel this anyways); Also the documentation states
357 that we need to call the WebRequest.Abort method, so we do that in
358 every Download instance.
360 (DownloadDataAsync, DownloadFileAsync, DownloadStringAsync,
361 OpenReadAsync, OpenWriteAsync, UplaodDataAsync, UploadFileAsync,
362 UploadStringAsync): Make signature parameters match MS; use
363 threads instead of threadpool (so we can implement CancelAsync),
364 catch ThreadAbortException here so we can also raise the proper
365 DownloadDataCompleteEventArgs.
367 These routines will also call the WebRequest.Abort when
368 appropriate when ThreadInterrupted is used.
370 (ReadAll): Raise DownloadProgressChanged events.
372 2007-12-03 Gert Driesen <drieseng@users.sourceforge.net>
374 * WebClient.cs: Modified argument checks to match MS, and wrap
375 exceptions in a WebException. Fixes bug #343064.
377 2007-12-03 Miguel de Icaza <miguel@novell.com>
379 * FtpWebRequest.cs: Applied patch from Jerome Haltom that fixes
380 multi-line responses (after my fix).
384 2007-11-16 Marek Habersack <mhabersack@novell.com>
386 * HttpWebRequest.cs: when folding a request into a GET one, set
387 content length to 0 and kill the buffers. Fixes bug #327314. Patch
388 from Geoff Norton <gnorton@novell.com>, thanks!
390 2007-11-13 Atsushi Enomoto <atsushi@ximian.com>
392 * WebRequest.cs : added missing ImpersonationLevel (NIE).
393 * SecurityProtocolType.cs : not [Serializable] in 2.0.
394 * ServicePoint.cs : no GetHashCode() in 2.0.
395 * WebRequestMethods.cs : fixed wrong STOU.
396 * FileWebResponse.cs : no Dispose(true) in 2.0 API.
398 2007-11-08 Jb Evain <jbevain@novell.com>
400 * WebHeaderCollection_2_1.cs: add a custom WebHeaderCollection
403 2007-11-07 Geoff Norton <gnorton@novell.com>
405 * ListenerAsyncResult.cs: Only send the 401 header if our authentication
406 type is Basic or Negotiate (which we default to basic) because that is
407 all we support. Set the WWW-Authenticate header when we return a 401
408 result. Send the correct state object in the async result.
410 2007-11-06 Geoff Norton <gnorton@novell.com>
412 * ListenerAsyncResult.cs: If the HttpListener has an authentication
413 scheme, the user should be presented with a 401 without calling the
416 2007-11-04 Miguel de Icaza <miguel@novell.com>
418 * FtpWebRequest.cs (GetResponseStatus): Fix this routine
419 propertly, refactor, and make it follow Mono coding conventions.
421 2007-10-30 Jerome Haltom (wasabi@larvalstage.net)
423 * FtpWebRequest.cs: adds support for ftp multiline results, fixes
426 2007-10-27 Miguel de Icaza <miguel@novell.com>
428 * HttpListener.cs: Remove more trigger-happy disposed=true from
429 the code; We should only dispose when the Dispose method is
430 actually called. Not before.
434 * HttpListener.cs (Close): Closing does not mean dispose the
435 object. This allows Start/Stop/Start to be called as many times
440 2007-10-15 Gert Driesen <drieseng@users.sourceforge.net>
442 * FtpWebRequest.cs: Added support for DELETE.
444 2007-10-15 Gert Driesen <drieseng@users.sourceforge.net>
446 * WebRequest.cs: Changed serialization ctor to throw NIE on 1.0
447 profile. Cache default proxy, but still allow it to be explicitly set
448 to null. Removed commented code.
450 2007-10-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
452 * WebRequest.cs: DefaultWebProxy allows a null value. Fixes bug #323668.
454 2007-09-30 Gert Driesen <drieseng@users.sourceforge.net>
456 * HttpListenerRequest.cs: Do not store 'method' in upper case, but
457 instead use case-insensitive comparison.
459 2007-09-30 Gert Driesen <drieseng@users.sourceforge.net>
461 * HttpListenerRequest.cs: Removed dead code. USe String.Length to
462 check for zero-length string. Use instance field for is_chunked, and
463 also set it for GET/HEAD/DELETE. Fixed HasEntityBody to return true
464 when Content-Length > 0, or Transfer-Encoding is chunked.
466 2007-09-28 Marek Habersack <mhabersack@novell.com>
468 * HttpListenerRequest.cs: make sure 'method' is always stored in
470 The DELETE method must not error out on missing Content-Length
471 header (this is the behavior of the MS.NET version of the
472 class). Fixes bug #323215.
473 HasEntityBody should return false when method is GET/HEAD,
474 content_length is less than or equal to zero or the request is
475 chunked. Fixes bug #325296
477 2007-08-29 Atsushi Enomoto <atsushi@ximian.com>
479 * IPAddress.cs, IPv6Address.cs : (ToString) output ScopeId.
481 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
483 * HttpWebRequest_2_1.cs, HttpWebResponse_2_1.cs :
484 added new sources for those classes for 2.1 (in 2.1 they are
485 almost abstract, while in 2.0 they are concrete).
486 * HttpRequestCreator.cs, ServicePoint.cs :
487 #ifdef 2.0 dependencies out.
489 2007-06-28 Chris Howie <cdhowie@nerdshack.com>
491 * ServicePoint.cs: Implemented BindIPEndPointDelegate.
492 * FtpWebRequest.cs: Respect ServicePoint.BindIPEndPointDelegate.
493 * WebConnection.cs: Respect ServicePoint.BindIPEndPointDelegate.
495 2007-08-08 Jb Evain <jbevain@novell.com>
497 * HttpWebRequest.cs: .ctor(Uri) is public in 2.1.
499 2007-08-03 Jb Evain <jbevain@novell.com>
501 * Dns.cs: remove async methods for the 2.1 profile.
503 2007-07-17 Rodrigo Kumpera <rkumpera@novell.com>
505 * HttpListenerRequest.cs: Support for Cookie decoding.
506 * HttpListenerResponse.cs: Support for encoding cookies on the response sent to the client
507 * Cookie.cs: new internal method to encode the Cookie in a proper form to sent to clients
509 2007-07-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
511 * WebConnectionStream.cs: implement the CanTimeout for 2.0. Fixes
514 2007-07-12 Geoff Norton <gnorton@customerdna.com>
516 * HttpListenerContext.cs:
517 * HttpListener.cs: Handle HttpListener AuthenticationSchemes
518 Only Basic authentication is included for now.
520 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
522 * NetworkAccess.cs: Only mark as flags enum on 2.0.
524 2007-06-21 Dick Porter <dick@ximian.com>
526 * AuthenticationManager.cs:
535 * ServicePointManager.cs:
536 * HttpWebResponse.cs: Throw NotImplementedException indirectly, to
537 reduce noise in Moma reports.
539 2007-06-20 Atsushi Enomoto <atsushi@ximian.com>
541 * ServicePointManager.cs : (bootstrap) build fix.
543 2007-06-19 Dick Porter <dick@ximian.com>
545 * AuthenticationManager.cs:
546 * IWebProxyScript.cs:
549 * CookieException.cs:
550 * CredentialCache.cs:
553 * FileWebResponse.cs:
557 * DecompressionMethods.cs:
558 * HttpWebResponse.cs:
559 * ProtocolViolationException.cs:
561 * ServicePointManager.cs:
564 * WebHeaderCollection.cs:
566 * WebExceptionStatus.cs: 2.0 profile updates
568 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
570 * WebConnectionStream.cs: On read timeout, throw WebException with
571 status Timeout instead of IOException.
573 2007-05-16 Adar Wesley <adarw@mainsoft.com>
575 * CookieCollection.cs: added missing method strongly typed CopyTo.
577 * CredentialCache.cs: added missing methods Add, Remove, GetCredential
579 * HttpWebRequest.jvm.cs: added missing ClientCertificates getter.
581 * ServicePoint.cs: added missing method CloseConnectionGroup.
583 * WebClient.cs: added missing methods OnDownloadProgressChanged,
584 OnUploadProgressChanged, GetWebRequest, GetWebResponse
586 * WebHeaderCollection.cs: added missing methods IsRestricted, Add,
589 * WebProxy.cs: added missing method GetObjectData.
591 2007-05-15 Marek Habersack <mhabersack@novell.com>
593 * HttpWebRequest.cs: fold all methods into GET for
594 redirect/moves. Fixes bug #81624
596 2007-05-07 Miguel de Icaza <miguel@novell.com>
598 Missing second part of the patch.
600 * WebHeaderCollection.cs: To be compatible with older versions of
601 Mono that might have serialized this in a different format, catch
602 the potential exception, and try the old name.
604 This should become a practice whenever we fix serialization in the
609 2007-04-23 Marek Habersack <mhabersack@novell.com>
611 * EndPointListener.cs: relax prefix matching to succeed in cases
612 when the prefix ends with / and the request path does not. Fixes
615 * CookieCollection.cs: added a SortByPath method to sort the
616 collection on demand.
618 * Cookie.cs: do not return "/" for Path if it wasn't set
621 * CookieContainer.cs: set cookie path only if its version is
622 "Netscape" and is null or empty. Fixes #81420.
623 Sort the collection by the path relevance before returning from
624 the GetCookies method. Fixes bug #81421.
626 2007-04-17 Joel Reed <joelwreed@gmail.com>
628 * WebHeaderCollection.cs: www-authenticate should be multivalue.
629 This fixes a bug related to RFC 2608 which says in section
630 "15.2 Offering a Choice of Authentication Schemes"
632 An HTTP/1.1 server may return multiple challenges with a 401
633 (Authenticate) response, and each challenge may use a different
634 scheme. The order of the challenges returned to the user agent is in
635 the order that the server would prefer they be chosen. The server
636 should order its challenges with the "most secure" authentication
637 scheme first. A user agent should choose as the challenge to be made
638 to the user the first one that the user agent understands.
640 Before this change, mono was choosing whatever was sent last,
641 which was the most insecure authentication option.
643 2007-04-10 Marek Habersack <mhabersack@novell.com>
645 * HttpListenerRequest.cs: do not include the query start marker
646 ('?') in the first variable name stored in the QueryString
647 collection. There is no HTTP header 'Accept-Types' in the
648 standard, there's only the 'Accept' header that specifies the
649 accepted MIME types. Fixes bug #81317
651 2007-03-25 Alan McGovern <alan.mcgovern@gmail.com>
653 * IPAddress.cs : Further optimisation for the Swap*** methods.
655 2007-03-24 Alan McGovern <alan.mcgovern@gmail.com>
657 * IPAddress.cs : Optimised the SwapInt and SwapLong methods.
659 2007-03-09 Miguel de Icaza <miguel@novell.com>
661 * FtpDataStream.cs: Close must be called on the stream before we
662 attempt to read a status code from the remote server.
664 Fixes FTP transfers to complete.
666 2007-03-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
668 * HttpWebRequest.cs: properly handle OPTIONS, which may or may not
669 have a request body. Fixes bug #80686.
671 2007-03-02 Marek Habersack <mhabersack@novell.com>
673 * WebClient.cs: Overwrite existing files on download, as
674 documented and as tested on MS.NET. Fixes Bug#81005
676 2007-02-24 Gert Driesen <drieseng@users.sourceforge.net>
678 * HttpWebRequest.cs: Allow Proxy to be set to null on 2.0 profile.
680 2007-02-18 Geoff Norton <gnorton@customerdna.com>
682 * AuthenticationManager.cs: Register the modules in the 2.0 profile
683 when we create the ArrayList.
685 2007-02-01 Gert Driesen <drieseng@users.sourceforge.net>
687 * WebProxy.cs: In IsBypassed, move address check back to satify unit
690 2007-01-30 Ilya Kharmatsky <ilyak -at- mainsoft.com>
692 * Dns.cs : implemented proper exception handling under TARGET_JVM
693 when trying to resolve not existing host.
695 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
697 * IPAddress.cs: Provide more meaningful exception message on 2.0
700 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
702 * FileWebRequest.cs: Fixed PreAuthenticate and Proxy properties to
703 no longer throw NotSupportedException. No longer store ContentLength
704 in headers. Do not allow null or zero-length method. Allow timeout
705 to be set to -1 (infine). Only disallow GET, HEAD and CONNECT requests.
706 Removed workarounds for bug #24943. In (Begin)GetRequest overwrite
707 file if it already exists. Binary serialization compatibility fixes.
708 * FileWebResponse.cs: Return application/octet-stream as ContentType.
710 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
712 * WebHeaderCollection.cs: Fixed binary serialization compatibility
715 2007-01-28 Gert Driesen <drieseng@users.sourceforge.net>
717 * WebProxy.cs: Lazy init bypassList. Fixes for binary serialization
718 compatibility. Added stub for UseDefaultCredentials (2.0). On 2.0
719 profile, throw ArgumentNullException in IsBypassed if host is null.
721 2007-01-22 Miguel de Icaza <miguel@novell.com>
723 * HttpWebRequest.cs: Remove unused variable.
725 * FtpWebRequest.cs: Remove unused variable.
727 * WebHeaderCollection.cs: Remove a handful of NotImplementedException's
729 2007-01-11 Miguel de Icaza <miguel@novell.com>
731 * HttpListenerRequest.cs (SetRequestLine): Add validation for the
734 Allow any verbs to go through, not only
735 the white list of verbs.
739 2007-01-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
741 * RequestStream.cs: initialize the stream in both ctors. Fixes a couple
744 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
746 * HttpWebRequest.jvm.cs: Fixed line endings.
747 * HttpWebResponse.jvm.cs: Same.
748 * WebException.cs: Same.
749 * FtpWebRequest.cs: Same.
750 * VMWHttpProvider.jvm.cs: Same.
752 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
754 * DnsPermissionAttribute.cs: Fixed line endings.
755 * HttpVersion.cs: Same.
756 * FtpWebResponse.cs: Same.
757 * HttpContinueDelegate.cs: Same.
758 * FtpAsyncResult.cs: Same.
759 * EndpointPermission.cs: Same.
760 * IPv6Address.cs: Same.
761 * FtpDataStream.cs: Same.
762 * SocketPermission.cs: Same.
763 * FileWebRequest.cs: Same.
764 * FileWebResponse.cs: Same.
765 * DnsPermission.cs: Same.
766 * ProtocolViolationException.cs: Same.
767 * MonoHttpDate.cs: Same.
768 * SocketPermissionAttribute.cs: Same.
769 * CookieException.cs: Same.
770 * WebResponse.cs: Same.
771 * DefaultCertificatePolicy.cs: Same.
773 2006-12-28 Gert Driesen <drieseng@users.sourceforge.net>
775 * IPAddress.cs: On 1.1, 4-byte addresses are not supported in the
776 ctor. Added null checks for the address passed in the ctors.
778 2006-12-28 Miguel de Icaza <miguel@novell.com>
780 * IPAddress.cs: The condition in 1.1 was broken, it only allowed
781 16-byte addresses, and never 4-byte addresses (only 2.0 had
784 Keep a single code path.
786 Also, remove all the NET_1_1 defines, we realistically only
787 distinguish between 1.1 and 2.0, we wont likely support 1.0, 1.1
788 and 2.0, so remove the 1.0 vs 1.1 conditionals.
792 〓2006-12-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
794 * WebConnectionStream.cs: fix error in my last patch. Thanks to Felipe
797 2006-12-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
801 * WebConnectionStream.cs: detect errors writing headers earlier and
802 avoid race that showed up with SSL. Fixes bug #80234.
804 2006-12-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
806 * EndPointListener.cs:
809 * ChunkedInputStream.cs:
811 * RequestStream.cs: add initial support for HTTPS.
813 2006-12-18 Atsushi Enomoto <atsushi@ximian.com>
815 * FtpStatus.cs : The build gets broken when only-2.0 classes/members
816 are not excluded in 1.x build.
818 2006-12-18 David Elkind <davide@mainsoft.com>
820 * FtpAsyncResult.cs : FTP request is now working and covers about 100% of .NET API
821 * FtpDataStream.cs: FTP request is now working and covers about 100% of .NET API
822 * FtpWebRequest.cs: FTP request is now working and covers about 100% of .NET API
823 * FtpWebResponse.cs: FTP request is now working and covers about 100% of .NET API
824 * FtpStatus.cs: added composite status (includes status code and status description)
826 2006-12-04 Konstantin Triger <kostat@mainsoft.com>
828 * WebRequest.cs, WebResponse.cs: TARGET_JVM limitation workaround.
830 2006-12-04 Konstantin Triger <kostat@mainsoft.com>
832 * ServicePointManager.cs: correct assignment typo.
833 * ServicePoint.cs: Remove unneeded locks for getters, add internal setter.
835 2006-11-27 Miguel de Icaza <miguel@novell.com>
837 * WebRequest.cs: Instead of throwing NotImplemented exceptions,
838 call GetMustImplement, that way we do not need the whitelist, and
839 we save a handful of opcodes.
841 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
843 * HttpWebRequest.cs: add 2 more methods that are not supposed to have
844 a body. Fixes bug #80001.
846 2006-11-15 Andrew Skiba <andrews@mainsoft.com>
848 * WebHeaderCollection.cs: add stubs for new 2.0 properties.
850 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
852 * HttpWebResponse.cs: cookies are actually added to the request
853 container if any. Fixes bug #79821.
855 2006-11-02 Michael Hutchinson <m.j.hutchinson@gmail.com>
857 * WebRequest.cs: more closely follow MS behaviour: use system settings
858 unless told otherwise, and respect app.config.
860 2006-11-01 Michael Hutchinson <m.j.hutchinson@gmail.com>
862 * GlobalProxySelection.cs: Obsolete GlobalProxySelection under 2.0
863 profile, and move code to new property WebRequest.DefaultWebProxy.
864 * WebRequest.cs: Implement new 2.0 property DefaultWebProxy.
865 Add support for config option UseSystemDefault using simplistic
866 implementation of new 2.0 method GetSystemWebProxy ().
868 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
870 * FtpWebRequest.cs : more build fixes.
872 2006-10-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
874 * EndPointListener.cs: update comment and avoid exception when the
877 2006-10-30 Miguel de Icaza <miguel@novell.com>
879 * WebRequestMethods.cs: Another typo fix.
881 * ServicePointManager.cs: Set the default properly.
883 * SecurityProtocolType.cs: Remove non-existant defines.
885 2006-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
887 * HttpWebRequest.cs: internally allow buffer if it's not a known
888 GET-only method instead of enabling that only for POST/PUT. Fixes bug
891 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
893 * WebConnection.cs: TARGET_JVM
895 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
897 * WebException.cs: patch by Andrew Skiba that fixes serialization
898 compatibility with .NET and the default value for status.
900 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
904 2006-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
906 * CookieContainer.cs: send the cookies from the collection we got for
907 the given URI, not the whole collection.
908 * HttpWebResponse.cs: only add the cookies to this instance, not to the
909 cookie container set in the request.
911 2006-09-11 Sebastien Pouliot <sebastien@ximian.com>
913 * WebConnection.cs: Patch to remove the hack that was required for
914 using the older versions of the SSL/TLS classes. This hack is no more
915 required :-). Patch by Gonzalo Paniagua Javier.
917 2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
919 * HttpConnection.cs: when the content length is available, keep it
920 updated after synchronous read. Renamed 'available' to 'remaining_body'.
921 * RequestStream.cs: when creating the stream, pass the remaining length
922 starting from the offset in the buffer.
924 2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
926 * RequestStream.cs: make sure we return 0 when no more bytes left.
927 Paticularly, when we have a content length and the whole response is
930 2006-08-20 Miguel de Icaza <miguel@novell.com>
932 * RequestStream.cs (Read): A bug fix for #79112 and what I
933 consider to be an important change.
935 The bug fix is that we update the "available" variable as soon as
936 we consume data from Read, this means that a second call into Read
937 wont block. Available was only being updated on a secondary code
938 path, now we alwaysupdate it after using FillFromBuffer.
940 The second component is what I believe the right behavior should
941 be. There was a check for "if count > available" that set count
942 to available in that case. The idea was to limit the data read
943 from the buffer that belonged to this particular request, to allow
946 But this test was done after FillFromBuffer, which assumed that
947 all the data held in the buffer (the one used by FillFromBuffer)
948 must belong to the this request, and only future data did not.
950 I think my change is correct, but it assumes that the initialized
951 RequestStream will be used for other pipelined HTTP requests,
952 which is not something am 100% sure of, so Gonzalo needs to check
955 2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
957 * Cookie.cs: avoid nullref in GetHashCode and Equals.
959 2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
961 * CookieCollection.cs:
962 * CookieContainer.cs: remove expired cookies.
964 2006-07-07 Atsushi Enomoto <atsushi@ximian.com>
966 * Dns.cs : (GetHostEntry) when passed IP addresses, it does not issue
967 query to DNS. Patch by Petri Latvala.
969 2006-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
971 * CookieContainer.cs: don't send a secure cookie over an insecure
974 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
976 * WebProxy.cs: (IsBypassed) 'loopback', 'localhost' and any address
977 that starts with 127 are special.
979 2006-05-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
981 * HttpListener.cs: Fixes race condition in BeginGetContext. Patch by
982 Pawel Sakowski that fixes bug #78365.
984 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
986 * ServicePointManager.cs : oops, CONFIGURATION_DEP.
988 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
990 * GlobalProxySelection.cs : if corresponding config section is
991 DefaultProxySection then use it.
993 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
995 * WebRequest.cs : if corresponding config section is
996 WebRequestModulesSection then use it.
998 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
1000 * ServicePointManager.cs : if corresponding config section is
1001 ConnectionManagementSection then use it.
1003 2006-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1005 * ResponseStream.cs:
1006 * HttpListenerResponse.cs: allow 0 length POST. Patch by Horst Reiterer.
1009 2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1011 * CredentialCache.cs: added DefaultNetworkCredentials.
1013 2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1015 * NetworkCredential.cs: implement ICredentialsByHost interface.
1017 2006-04-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1019 * WebConnection.cs: reset the challenge and the status code when
1020 creating the tunnel and sending the proxy auth. headers. Improve error
1021 message when there's an error creating the tunnel.
1022 * HttpWebRequest.cs: don't trigger an early throw for a POST that gets
1023 a 401 or 407 response.
1025 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1027 * WebConnectionData.cs:
1029 * HttpWebRequest.cs: when tunneling an ssl conneciton through a proxy,
1030 we were not handling a proxy authentication request. Fixes bug #78150
1033 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1035 * WebProxy.cs: a .ctor was not forwarding the 'credentials' argument.
1036 This fixes bug #78150. Also fix the bypass check for local requests.
1038 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1040 * WebProxy.cs: removed bogus ^M.
1042 2006-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1044 * HttpWebResponse.cs: don't remove the Set-Cookie headers. Fixes bug
1047 2006-04-04 Atsushi Enomoto <atsushi@ximian.com>
1049 * WebClient.cs : added a bunch of async method support.
1051 2006-04-03 Chris Toshok <toshok@ximian.com>
1053 * HttpWebResponse.cs (ContentEncoding): return "" if the header
1056 2006-03-30 Atsushi Enomoto <atsushi@ximian.com>
1058 * DownloadStringCompletedEventHandler.cs : missing delegate.
1060 2006-03-30 Atsushi Enomoto <atsushi@ximian.com>
1062 * Dns.cs : minor argument renaming.
1064 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
1066 * DownloadDataCompletedEventArgs.cs
1067 DownloadDataCompletedEventHandler.cs
1068 DownloadProgressChangedEventArgs.cs
1069 DownloadProgressChangedEventHandler.cs
1070 DownloadStringCompletedEventArgs.cs
1071 OpenReadCompletedEventArgs.cs
1072 OpenReadCompletedEventHandler.cs
1073 OpenWriteCompletedEventArgs.cs
1074 OpenWriteCompletedEventHandler.cs
1075 UploadDataCompletedEventArgs.cs
1076 UploadDataCompletedEventHandler.cs
1077 UploadFileCompletedEventArgs.cs
1078 UploadFileCompletedEventHandler.cs
1079 UploadProgressChangedEventArgs.cs
1080 UploadProgressChangedEventHandler.cs
1081 UploadStringCompletedEventArgs.cs
1082 UploadStringCompletedEventHandler.cs
1083 UploadValuesCompletedEventArgs.cs
1084 UploadValuesCompletedEventHandler.cs : added 2.0 types.
1086 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
1088 * Dns.cs : filled missing NET_2_0 members.
1090 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
1092 * IPAddress.cs : ugh, I was testing with run-test-ondotnet, not
1093 run-test. Those IPv6 properties needed to be reimplemented.
1095 2006-03-27 Atsushi Enomoto <atsushi@ximian.com>
1097 * IPAddress.cs : added NET_2_0 TryParse() and IPv6 related properties.
1099 2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1101 * WebConnectionStream.cs: avoid Begin/EndWrite when the body length is
1104 2006-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1106 * HttpWebRequest.cs: send the request if ContentLength is set for
1107 POST/PUT, the request stream has that exact amount of bytes in it and
1108 we're trying to get the response stream.
1110 This way, closing the request stream is not needed in order to actually
1111 send the request. Fixes bug #77753.
1113 * WebConnectionStream.cs: throw if the number of bytes written is
1114 greater than the specified request content length.
1116 2006-03-11 Miguel de Icaza <miguel@novell.com>
1118 * WebClient.cs: Only expose the right methods to avoid warnings.
1120 * FtpDataStream.cs (Dispose): Fix signature.
1122 * FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
1123 like we are missing features here).
1125 * IPAddress.cs: Move m_HashCode property to the end, and set
1126 pragmas to disable warnings.
1128 2006-02-16 Dick Porter <dick@ximian.com>
1130 * IPEndPoint.cs: The SocketAddress AddressFamily takes up the
1131 first two bytes, not just one. Check the size of the
1132 SocketAddress buffer for IPv6 as well.
1134 * Dns.cs: Cope when GetHostByName_internal or
1135 GetHostByAddr_internal returns fewer items in the array than it
1136 intended to (maybe due to conversion errors.)
1138 2006-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1140 * FtpWebResponse.cs: Add UpdateStatus method, to update both
1141 statusCode and statusDescription at the same time.
1143 2006-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1145 * FtpWebRequest.cs: Remove WebExceptionStatus argument
1146 from CreateExceptionFromResponse, since exceptions gotten
1147 from server response always have a WebExceptionStatus.ProtocolError
1150 2006-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1152 * FtpWebRequest.cs: Add renaming support when using
1153 WebRequestMethods.Ftp.Rename method.
1155 2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1157 * ChunkedInputStream.cs:
1158 * ChunkStream.cs: handle partial trailers and zero reads. Patch by Pawel
1161 2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1163 * HttpWebRequest.cs: don't send the expect-100 if if there's no content.
1165 * HttpListenerRequest.cs:
1166 * HttpConnection.cs:
1167 * RequestStream.cs: use the content length header to avoid reading past
1168 the end of the stream.
1170 Patch by Horst Reiterer.
1172 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1174 * FtpWebRequest.cs: Add supportedCommands array with the sorted
1175 methods, to search using Array.BinarySearch. Remove CheckMethod.
1177 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1179 * FtpWebRequest.cs: Fixed some typos and small issues.
1181 2006-02-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1183 * HttpWebRequest.cs: dummy implementation of UnsafeAuthenticationBlah
1186 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1188 * FtpRequestCreator.cs:
1189 * FtpAsyncResult.cs:
1192 * FtpWebResponse.cs: Initial implementation of FtpWebRequest (2.0)
1194 2006-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1196 * FtpStatusCode.cs: Fix a typo.
1198 2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1200 * WebClient.cs: (2.0) UploadString() returns string, not void.
1202 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1204 * HttpWebResponse.cs: ignore non-integer values for max-age and version.
1205 Fixes bug #77199. Thanks to Cyrille Colin.
1207 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1209 * HttpWebResponse.cs: cope with malformed cookies with '=' as value.
1210 Patch by Cyrille Colin. Fixes bug #77179.
1212 2005-12-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1214 * FtpStatusCode.cs: New 2.0 enum.
1216 2005-12-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1218 * CookieContainer.cs: fix matching of subdomains. Patch by Cyrille
1221 2005-12-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1223 * HttpWebResponse.cs: don't loop forever when no name or value between
1224 semicolons. Fixes bug #76943.
1226 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1228 * HttpWebResponse.cs: don't fail if the cookie ends with a 'name'
1229 without a value. Fixes bug #76922.
1231 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1233 * EndPointListener.cs:
1234 * HttpListenerRequest.cs: don't require the Host header for 1.0. Just
1235 map that to the '*' or '+' host.
1237 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1239 * IPAddress.cs: the byte[] ctor supports length 4 in .NET 2.0.
1242 2005-11-21 Senganal T <tsenganal@novell.com>
1244 * Dns.cs : corrected a mistake in GetHostEntry ()
1246 2005-11-21 Senganal T <tsenganal@novell.com>
1248 * Dns.cs : added GetHostEntry() method for 2.0 api conformance
1250 2005-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1252 * HttpRequestHeader.cs: add missing values.
1254 2005-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1256 * HttpListenerPrefixCollection.cs:
1257 * HttpWebResponse.cs:
1259 * HttpListenerRequest.cs:
1260 * HttpWebRequest.cs:
1261 * HttpListenerResponse.cs: a few signature fixes for 2.0.
1263 2005-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1265 * HttpListenerPrefixCollection.cs:
1266 * EndPointListener.cs:
1267 * HttpStreamAsyncResult.cs:
1268 * HttpListenerContext.cs:
1269 * HttpListenerBasicIdentity.cs:
1270 * AuthenticationSchemeSelector.cs:
1272 * WebHeaderCollection.cs:
1273 * ListenerPrefix.cs:
1274 * HttpListenerException.cs:
1275 * HttpResponseHeader.cs:
1276 * EndPointManager.cs:
1277 * HttpListenerRequest.cs:
1278 * HttpRequestHeader.cs:
1279 * BindIPEndPoint.cs:
1280 * ResponseStream.cs:
1281 * ChunkedInputStream.cs:
1282 * HttpStatusCode.cs:
1283 * ListenerAsyncResult.cs:
1285 * HttpConnection.cs:
1287 * HttpListenerResponse.cs:
1288 * RequestStream.cs: initial implementation of HttpListener. There are
1289 a few TODOs left (cookies, HTTPS) but almost everything else is in.
1291 2005-11-15 Sebastien Pouliot <sebastien@ximian.com>
1293 * IPv6Address.cs: Added on overload to ToString to get a the full
1294 length address returned (as required by System.Uri).
1296 2005-11-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1298 * WebRequestMethods.cs: New 2.0 class.
1300 2005-11-05 Atsushi Enomoto <atsushi@ximian.com>
1302 * WebClient: use POST for DownloadData(). Fixed bug #76631.
1304 2005-10-26 Atsushi Enomoto <atsushi@ximian.com>
1306 * AuthenticationSchemes.cs : Fixed enum values and added [Flags].
1308 2005-10-19 Atsushi Enomoto <atsushi@ximian.com>
1310 * WebClient.cs : added net_2_0 DownloadString() and DownloadData()
1311 with HTTP method as well.
1313 2005-10-19 Atsushi Enomoto <atsushi@ximian.com>
1315 * WebClient.cs : added UploadString() and Encoding (net_2_0). Added
1316 some new overloaded stuff that takes Uri instead of string address.
1318 2005-10-17 Sebastien Pouliot <sebastien@ximian.com>
1320 * ICredentialPolicy.cs: New. Interface for 2.0.
1322 2005-10-05 Atsushi Enomoto <atsushi@ximian.com>
1324 * AuthenticationSchemes.cs : new 2.0 enum.
1326 2005-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1328 * GlobalProxySelection.cs: remove double lock.
1329 * HttpWebRequest.cs: remove double lock in GetServicePoint() and use
1330 a private object when locking.
1332 2005-07-15 Miguel de Icaza <miguel@novell.com>
1334 * DigestClient.cs: Fix bug #75556, the qop argument must be
1335 quoted, per http://www.faqs.org/rfcs/rfc2617.html section
1338 2005-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1340 * WebConnectionStream.cs: initiate writing the body before trying to
1341 read. This fixes the performance problems observed in web services.
1344 2005-06-27 Lluis Sanchez Gual <lluis@novell.com>
1346 * IPAddress.cs: Changed field names for the sake of serialization
1347 interoperability with MS.NET.
1349 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1351 * WebConnection.cs: if cnc.EndRead throws, mark the asyncresult as done.
1352 * WebConnectionStream.cs: if we're done with the body of a chunk, don't
1353 require the next chunk header to be there, as some servers might close
1354 the connection (while also sending 'Connection: close').
1356 2005-06-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1358 * HttpWebRequest.cs: MS implementation follows redirects for POST. Seems
1359 to me that this is against 10.3.3 in RFC 2616, but may be the user
1360 'authorization' to do this is implicit in AllowAutoRedirect...
1362 2005-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1364 * WebConnection.cs: SslClientStream.BeginRead might not be asynchronous
1365 if there's no record available to read. This is a workaround that makes
1366 the call to BeginRead itself asynchronous. Fixes bug #75342.
1368 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1371 * HttpWebRequest.cs:
1372 * WebConnectionStream.cs: initiate the polling for input data after
1373 sending the header so that we detect any response that the server sends
1374 back even if we're still trying to write the request for a POST/PUT.
1375 If we get the response (or an error) before any one calls GetResponse(),
1376 keep it around instead of ignoring it.
1378 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1380 * HttpWebRequest.cs: send the right header/user/password in
1381 PreAuthenticate in presence of a proxy.
1383 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1385 * IPv6Address.cs: fix IsLoopback. Closes bug #75128.
1387 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1389 * IPv6Address.cs: don't do extra check on ipv4 if this is a ipv6
1390 address. Fixes bug #75125.
1392 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1394 * ServicePointManager.cs: when going through a proxy, use 2 different
1395 service points depending on the scheme. Fixes bug #75135.
1397 2005-05-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1399 * Dns.cs: don't parse the address when it comes from an IPAddress.
1401 2005-05-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1403 * WebConnection.cs: prevent 2 nullrefs when the aborting during
1404 Connect() and reset the status to Success before starting a new
1407 2005-05-19 Sebastien Pouliot <sebastien@ximian.com>
1409 * WebRequest.cs: Throw NotImplementedException (not NotSupported
1410 Exception) for stuff that should have been abstract. No exception
1411 is thrown by the serialization constructor.
1413 2005-05-04 James Willcox <james@ximian.com>
1415 * DigestClient.cs: convert to a hex string with "X8" consistently
1418 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1420 * WebConnection.cs: don't rethrow errors in Write, as the error will be
1421 received by GetResponse*. The result is that the threadpool thread doing
1422 this will not end up printing the exception. Fixes bug #74817.
1424 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1426 * ServicePoint.cs: HostEntry needs to be thread safe.
1428 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1430 * WebConnection.cs: removed a 'slightly' important line by mistake.
1431 * WebConnectionStream.cs: if the transfer encoding is chunked, ignore
1432 content-length header if present.
1434 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1436 * WebConnection.cs: no need to use an AutoResetEvent.
1437 * WebConnectionStream.cs: don't start any more reads on the socket
1438 after getting a 0 signalling the end. This fixes Ben's infamous foo.cs
1441 2005-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1443 * BasicClient.cs: firefox/IE just send latin1, stripping the high byte
1444 from unicode >= 256 characters.
1446 2005-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1448 * BasicClient.cs: use latin1 when encoding the username/domain/password.
1451 2005-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1453 * WebConnectionStream.cs: if the BeginRead/BeginWrite is completed
1454 synchronously, no need to create the ManualResetEvent to wait on.
1456 2005-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1458 * WebConnectionStream.cs: call SetComplete in EndWrite when we're not
1459 buffering the request body. Fixes bug #74637.
1461 * WebAsyncResult.cs: renamed field.
1463 2005-04-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1465 * WebConnectionStream.cs:
1466 * WebAsyncResult.cs: ensure we only call EndRead once per async. result.
1467 Update total before invoking the callback when present.
1469 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1472 * WebConnectionStream.cs: don't start reading until we've sent at least
1473 the headers. This way we ensure that a Write happens before any Read,
1474 which is needed by the SSL code.
1476 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1478 * HttpWebRequest.cs: ensure we read everything before redirecting.
1480 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1482 * WebConnectionStream.cs: provide a default callback when doing async.
1483 read/write and waiting for a timeout so that the callback sets the
1484 event and we don't block forever. Fixes bug #74539 take 3.
1486 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1489 * HttpWebRequest.cs: now Abort() works properly. Fixes bug #74177.
1491 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1493 * WebConnection.cs: fix some breakage from my last patch.
1494 * WebConnectionStream.cs: invoke the callback when done even in EndRead.
1496 2005-04-10 Sebastien Pouliot <sebastien@ximian.com>
1498 * WebConnection.cs: Added support for TrustFailure when throwing a
1499 WebException. Fix bug #74286.
1501 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1503 * HttpWebRequest.cs:
1504 * WebConnectionStream.cs: implemented support for ReadWriteTimeout.
1506 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1508 * WebConnection.cs: if we're reading chunked data and didn't use the
1509 stream to read, we gotta set the async. result as complete and invoke
1510 the callback. Don't call nstream.EndRead with the wrong IAsyncResult.
1512 * WebConnectionStream.cs: in EndRead, pass the correct IAsyncResult to
1513 cnc.EndRead. Lock on a field instead of 'this'.
1515 2005-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1517 * HttpWebRequest.cs: throw the exception if we got an error, as now
1518 it's catched in the redirection handling code.
1520 2005-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1522 * HttpWebRequest.cs: moved redirection handling to a proper place.
1524 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1526 * WebHeaderCollection.cs: added if-modified-since to the list of
1529 * ServicePoint.cs: use a field object when locking.
1531 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1533 * WebConnectionStream.cs: ForceCompletion actually calls NextRead. No
1534 need to wait for a Close/ReadAll when we have no content.
1536 2005-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1538 * NtlmClient.cs: fix typo in assembly name.
1540 2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1542 * CookieContainer.cs: adding to a CookieCollection might not increment
1543 the number of items if the cookie is replaced. Now Count works properly.
1544 Fixed an array index exception (typo).
1546 * CookieCollection.cs: also compare the version.
1548 * HttpWebResponse.cs: when we have cookies, add them to the request
1551 * HttpWebRequest.cs: changed last parameter of HttpWebResponse ctor.
1553 2005-03-30 Miguel de Icaza <miguel@novell.com>
1555 * Cookie.cs: Compare using the InvariantCulture, to match the
1556 behavior of CookieContainer that already did this.
1558 2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1560 * WebConnection.cs: we don't need to trigger the next queued request
1561 until the response is closed.
1563 2005-03-29 Miguel de Icaza <miguel@novell.com>
1565 * HttpWebResponse.cs: Handle quotations in the cookies values, per
1566 the spec http://www.faqs.org/rfcs/rfc2109.html, it is allowed to
1569 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1572 * DigestClient.cs: check that GetCredential() does not return null.
1574 2005-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1576 * BasicClient.cs: ensure credentials are not null.
1578 2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1580 * HttpWebResponse.cs: moved cookie parsing into its own class.
1581 * WebHeaderCollection.cs: remove (probably bogus) GetMultipleValues
1583 * HttpWebRequest.cs: don't let exception raised in the ctor of
1584 HttpWebResponse vanish.
1588 2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1590 * WebHeaderCollection.cs: handle commas inside quotes when splitting
1591 a multi-value header. Fixes bug #73151.
1593 2005-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1595 * DigestClient.cs: fix for digest auth. and URIs containing query. Patch
1596 by James Wilcox. Fixes bug #72571.
1598 2005-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1600 * HttpWebResponse.cs:
1602 * HttpWebRequest.cs:
1603 * WebConnectionStream.cs: don't read the entire response unless the
1604 user requests it. Fixes bug #72443.
1606 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
1608 * IPv6Address.cs: Fix endianess problems.
1610 * IPAddress.cs: Fix misleading comments.
1612 2005-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1614 * HttpWebRequest.cs: send the headers when we're supposed to write
1615 a POST/PUT but call GetResponse before GetRequestStream.
1617 * WebConnectionStream.cs: new RequestWritten property.
1619 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
1621 * EndpointPermission.cs: Fix IsSubsetof(hostname) so that the regression
1622 tests work. In particular, IsSubsetOf ("12.13.*.*", "12.13.14.*") failed
1623 because 14 wasn't a subset of * (which it is). Fix: if part1 is we
1624 continue to the next portion.
1626 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
1628 * IPAddress.cs (ParseIPV4): Fix so that the regression tests work. In
1629 particular, " foo" and ".1.1.6" weren't being caught (" foo" because it
1630 started with a space, and ".1.1.6" because the split string accepted a
1631 0-length portion, which would make 1...6 valid, but isn't valid based on
1632 similar test cases).
1634 2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
1636 * WebHeaderCollection.cs: Fix GetValues(string) to split the values on
1637 commas if the header is a Multi-Value header. This matches
1638 MonoTests.System.Net.WebHeaderCollectionTest.
1640 2005-01-19 Sebastien Pouliot <sebastien@ximian.com>
1642 * WebPermissionAttribute.cs: Fixed NET_1_1 behaviour.
1644 2004-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1646 * WebConnectionStream.cs: remove unneeded check. Write detects and
1647 triggers the exception now.
1649 2004-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1651 * AuthenticationManager.cs: don't lock on a public Type.
1652 * HttpWebRequest.cs: read the error response for auth. errors.
1654 2004-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1656 * HttpWebRequest.cs: set webResponse back to null when redirecting.
1657 Fix the previous patch so that it reads the whole response even if
1658 auto-redirect is not enabled. Closes bug #70484.
1660 2004-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1662 * HttpWebResponse.cs: added ReadAll method.
1664 * WebConnection.cs: in HandleError, set the response error after
1665 closing the socket. Use an async. delegate to finish reading any prior
1666 WebConnectionStream.
1668 * HttpWebRequest.cs: for error responses that allow content, read the
1669 stream immediately. Fixes bug #70483.
1671 2004-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1673 * CookieContainer.cs: quote the port number.
1675 2004-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1678 * WebConnectionStream.cs: removed TryReconnect. It's no longer needed.
1680 2004-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1682 * WebConnection.cs: set the event in Close so that if the queue is
1683 empty, we won't block forever on next request. The finalizer was
1684 removed because we're not implementing IDisposable pattern here.
1686 2004-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1688 * WebConnection.cs: handle errors on chunked streams. Fixes bug #66858.
1689 * ChunkStream.cs: added error checking all over.
1691 * HttpWebRequest.cs: throw the exception received in SetResponseError
1692 if we already have a response.
1693 (SetRequestData): Don't nest the exception if it's a WebException.
1695 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1697 * WebConnection.cs: remove prevStream and don't set busy to false in
1698 HandleError. prevStream is not needed any more and setting 'busy' so
1699 early might let a request skip the queue.
1701 * WebConnectionGroup.cs: decrement the indexer when removing a dead
1702 reference from the arraylist.
1704 * WebConnectionStream.cs:
1705 (ReadAll): call NextRead if it has not been called before even when
1706 we have completed the request. Reuse the read buffer when reading a
1707 response of unknown size. Increase the buffer to 8kB.
1708 (BeginRead): increase pendingReads earlier and even when reading from
1709 the internal buffer.
1710 (EndRead): decrease pendingReads later and always.
1712 2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1714 * CookieContainer.cs: style, fixed checks for properties, implemented
1715 the MonoTODOs for the method that take an Uri. GetCookies and
1716 GetCookieHeaders now really return only the cookies that are requested
1717 filtering by the Uri parameter.
1719 * Cookie.cs: style, added default values for Comment, Domain and Port.
1721 2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1723 * CookieCollection.cs: reformatted, fixed Add by adding a new method to
1724 search across the arraylist, as list.IndexOf is not what we want.
1726 2004-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1728 * WebConnection.cs: check for FIN or RST on the socket before reusing.
1731 2004-11-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1733 * ChunkStream.cs: simplified condition for WantMore property.
1735 * WebConnection.cs: in Connect(), finish any pending reads we might
1736 have for chunked data. Ignore possible blank lines at the very
1737 beginning of the server response. Honor user set KeepAlive in
1738 HttpWebRequest for HTTP/1.1 connections. Thanks to Eyal Alayuf for
1739 his suggestions and code.
1741 2004-11-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1743 * HttpWebResponse.cs: don't lock up when the cookie received ends with
1744 a semicolon. Patch by Darryl VanDorp. Fixes bug #68956.
1746 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1748 * HttpWebRequest.cs: don't fail if the request has already been sent
1749 when accessing ContentType setter. Fixes bug #68848.
1751 2004-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1754 (WantMore): we're not done until we get a 0 chunk size and the trailer.
1755 The 0 can be expressed as more than one character too (ie, 000000).
1757 * HttpWebRequest.cs: new argument in SetResponseError.
1758 * WebConnection.cs: added argument to HandleError as a hint for
1760 (Connect): make the chunked stream be in the expected state when
1763 * WebConnectionStream.cs: removed unused method (ResetWriteBuffer).
1765 2004-10-10 David Sheldon <dave-mono@earth.li>
1767 * HttpWebRequest.cs: Use RemoveAndAdd for AddRange. Fixes unittest.
1769 2004-10-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1771 * HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
1772 * WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
1775 2004-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1777 * HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
1778 tunneling a secure connection.
1780 * ServicePoint.cs: added UseConnect property.
1782 * ServicePointManager.cs: set the UseConnect property when we use a http
1783 proxy for a https connection.
1785 * WebConnection.cs: setup the tunnled connection when using a proxy and
1788 2004-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1790 * HttpWebResponse.cs: remove unused SplitValue method.
1792 2004-09-10 Sebastien Pouliot <sebastien@ximian.com>
1794 * DnsPermission.cs: Updated to pass new unit tests.
1795 * DnsPermissionAttribute.cs: Cleanup.
1796 * SocketPermission.cs: Updated to pass new unit tests.
1797 * SocketPermissionAttribute.cs: Updated to pass new unit tests.
1798 * WebPermission.cs: Implemented some TODO - not complete yet.
1799 * WebPermissionAttribute.cs: Updated to pass new unit tests.
1801 2004-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1803 * Cookie.cs: don't fail when using default constructor. Fixes bug
1806 2004-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1808 * HttpWebResponse.cs: set-cookie and set-cookie2 can be present more
1809 than once and have multiple values. Don't rely on string.split when
1810 parsing cookie values.
1812 * WebHeaderCollection.cs: same thing for set-cookie and set-cookie2.
1813 Fixed GetValues (it was splitting values that contained a comma) and
1814 changed SetInternal to handle multi-value headers.
1818 2004-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1820 * WebProxy.cs: fix scheme detection. Patch by Konstantin Triger
1821 (kostat@mainsoft.com).
1823 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1825 * HttpWebRequest.cs: detect changes in scheme or port when redirecting.
1826 Fixes las take on bug 61218.
1828 2004-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1830 * WebConnection.cs: moved loading of the ssl stream Type to its own
1831 method. Don't create a new ssl stream if we're reusing the connection.
1833 * WebConnectionStream.cs: ensure the number of bytes copied in ReadAll
1834 is the expected even if the dta from the server has extra bytes.
1836 2004-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1839 * WebConnectionStream.cs: when the status code is 1xx, 204 or 304,
1840 "responses MUST NOT include a message-body". We tried to read the
1841 stream even when getting those codes and considered the 0 length
1844 2004-07-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1846 * HttpWebRequest.cs: removed bogus Monitor.Exit.
1847 * WebConnection.cs: use Address instead of RequestUri when checking for
1848 the scheme in order to select the stream type. Fixes bug #61218.
1850 2004-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1852 * ChunkStream.cs: added ChunkLeft property.
1854 (EndRead): when using small byte arrays to read from a chunked stream,
1855 ensure we've read the chunk size and try to fulfill the request
1856 completely. fixes bug 59653.
1858 2004-05-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1860 * WebConnectionStream.cs: fixed CanRead property. Closes bug #59273.
1862 2004-05-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1864 * DigestClient.cs: cache the sessions based on address and
1865 credentials, not only address. Added poor men's expiration to
1866 the session cache. Fixes bug #59202.
1868 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1872 * IPv6Address.cs: no more warnings about IPAddress.Address.
1874 2004-05-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1876 * WebException.cs: implemented serialization .ctor and
1879 2004-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1881 * WebAsyncResult.cs: don't create the WaitHandle if not needed.
1883 2004-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1885 * HttpWebRequest.cs: added 3 missing properties for 1.1. They are not
1888 * NetConfig.cs: added MaxResponseHeadersLength field.
1891 * ServicePointManager.cs: added missing properties for 1.1.
1893 2004-05-03 Sebastien Pouliot <sebastien@ximian.com>
1895 * WebConnection.cs: Use assembly name const to load Mono.Security.
1897 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1899 * NtlmClient.cs: Use assembly name const to load Mono.Security.
1901 2004-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1903 * WebConnectionStream.cs: avoid the exception when getting the content
1906 2004-03-29 Lluis Sanchez Gual <lluis@ximian.com>
1908 * HttpWebRequest.cs: Use a lock block instead of Monitor.Enter/Exit, so
1909 the lock is released in case of exception (for example, a
1910 ThreadAbortException). This also "fixes" bug #52417.
1911 Beware, this requires a runtime update (due to a bug in Monitor.Exit).
1912 * ServicePoint.cs: Changed method from internal to private, since it
1913 is not called from outside the class.
1915 2004-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1917 * HttpWebRequest.cs: added the exception status to the error message.
1918 * WebConnection.cs: add headers using SetInternal instead of Add to
1919 bypass header name validation. Fixes bug #55994.
1920 * WebHeaderCollection.cs: added SetInternal (string header).
1922 2004-03-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1925 * WebConnectionGroup.cs: the requests queue is now shared for all the
1926 connections belonging to the same connection group.
1928 2004-02-26 Sebastien Pouliot <sebastien@ximian.com>
1930 * DefaultCertificatePolicy.cs: New. Certificate validation
1931 policy compatible with the documented one present in Fx. It
1932 allows valid certificates and expired certificates to be used
1933 for SSL connections.
1934 * ServicePointManager.cs: Removed the DummyPolicy. Now creates
1935 a DefaultCertificatePolicy to validate certificates.
1937 2004-02-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1939 * ServicePoint.cs: SendContinue is always false for HTTP/1.0
1941 * WebConnection.cs: get rid of WaitForContinue() (yes!) and prevent
1942 calling more the ContinueDelegate more than once when we get the
1943 headers in several packets.
1945 * WebConnectionStream.cs: removed call to WaitForContinue.
1947 2004-02-25 Sebastien Pouliot <sebastien@ximian.com>
1949 * WebConnection.cs: Update previous patch to use HttpsClientStream
1950 (internal in Mono.Security assembly) in place of SslClientStream.
1951 This will reduce reflection and allow to use ICertificatePolicy.
1953 2004-02-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1955 * DigestClient.cs: fix quote handling. Reordered attributes in response.
1956 Fixed typo (QOP->CNonce). Now Digest works with apache2.
1958 2004-02-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1960 * DigestClient.cs: removed Console.
1961 * HttpWebRequest.cs: 401/407 were hanging for GET. Fixed.
1963 2004-02-24 Sebastien Pouliot <sebastien@ximian.com>
1965 * DigestClient.cs: Fixed issue with Apache server which do not use "
1966 for specifying the digest algorithm (.e.g. algorithm=MD5 not ="MD5").
1968 2004-02-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1970 * HttpWebRequest.cs: arghhh. I used the server response headers instead
1971 of what the client is supposed to send. Thanks to Helge Hess.
1973 2004-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1975 * AuthenticationManager.cs: implemented PreAuthenticate().
1977 * HttpWebRequest.cs: once we know the version of the server, use it if
1978 below the requested one. Remove 'Expect', 'Content-Length' and /or
1979 'Transfer-Encoding' if appropiate due to changes in version. Fixed
1980 'Host' header for non-standard ports. Support preauthentication. Closes
1983 2004-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1985 * HttpWebRequest.cs: check for missing or wrong URI in Location header
1988 * WebConnection.cs: if the data read does not contain all the headers,
1989 keep it around and read the rest until we get to the response body.
1990 Allow response code with no description. Fixed bug #54543.
1992 2004-02-18 Sebastien Pouliot <sebastien@ximian.com>
1994 * SecurityProtocolType.cs: Added missing [Serializable] to enum. Added
1995 Default and Ssl2 to NET_2_0 profile. Enum is now internal for NET_1_0
1996 profile (as we need it for SslClientStream).
1997 * ServicePoint.cs: Added internal SetCertificates(client,server).
1998 * ServicePointManager.cs: Added CheckCertificateRevocationList and
1999 CheckCertificateRevocationList static properties (public in 1.1,
2001 * WebConnection.cs: Dynamically creates a SslClientStream (from
2002 Mono.Security assembly) in case of https. Changed NetworkStream to
2005 2004-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2007 * HttpWebRequest.cs: send the 'Connection: keep-alive' header when we
2008 don't know the server version or it's 1.0.
2010 * ServicePoint.cs: added SetVersion.
2012 * WebAsyncResult.cs: remove ChunkAsyncResult.
2014 * WebConnection.cs: set the ServicePoint version when getting a response
2017 * WebConnectionStream.cs: when posting chunked content, send the head,
2018 body and trailer of the chunk at once instead of doing 3 separate
2019 writes, which may cause troubles.
2021 2004-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2023 * WebConnection.cs: if we get a 100 when we're not waiting for it, set
2024 that information in the ServicePoint.
2026 * WebConnectionStream.cs: send headers in the right order for
2029 2004-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2031 * WebConnectionStream.cs: fixed nullrefs in BeginWrite/EndWrite.
2033 2004-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2035 * HttpWebRequest.cs: on second and sucesive tries when authenticating,
2036 don't use chunked encoding for POST, as we know the content length and
2037 have the body. Nullify bodyBuffer always in CheckFinalStatus.
2039 * WebAsyncResult.cs: added ChunkAsyncResult property. It holds the
2040 IAsyncResult when writing CRLF at the end of a chunk.
2042 * WebConnectionStream.cs: support sending chunked data.
2044 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
2046 * HttpWebRequest.cs: When retrying a POST request after an
2047 authentication failure, resend the body. This fixes bug #51841.
2048 * WebConnectionStream.cs: Added properties for getting what's been
2051 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2053 * HttpWebRequest.cs: don't send 'Expect: 100-continue' for 1.0 version.
2055 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2057 * HttpWebRequest.cs: support proxy authentication.
2059 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2062 * DigestClient.cs: use IndexOf instead of StartsWith to deal with
2063 servers that provide several authentication schemas.
2065 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2067 * ChunkStream.cs: use an array of buffers instead of a MemoryStream for
2068 storing the chunks. This way, we won't miss traling data from the
2069 previous chunk when a new one is received before the other is fully
2072 2004-01-27 Nick Drochak <ndrochak@ieee.org>
2075 * HttpWebRequest.cs:
2079 * WebConnectionStream.cs: Remove unused variables thus eliminating some
2082 2004-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2084 * WebConnection.cs: patch by Yaacov Akiba Slama that fixes 100-continue
2085 handling for the case when the same packet also contains the actual
2088 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
2090 * HttpWebRequest.cs: Added missing property.
2092 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2094 * Dns.cs: don't block forever in EndResolve and EndGetHostByName. Fixes
2097 2004-01-16 Lluis Sanchez Gual <lluis@ximian.com>
2099 * ChunkStream.cs: The "size" parameter of Write is not the number of
2100 bytes to write, but the last offset to be written. Thus, in WriteAndRead
2101 Back, since "read" is not an offset but the number of bytes, it must be
2102 added to the offset. Maybe it would be a good idea to change the name of
2103 the parameter, since it is confusing. This should fix bug #52591.
2105 2004-01-12 Lluis Sanchez Gual <lluis@ximian.com>
2107 * WebConnection.cs: Yet another fix for WebConnection. This fixes
2110 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2112 * WebConnection.cs: Data.Init is a bad boy. Lluis realized. He also
2113 tidied up the end of ReadDone. Disabled relaunching the request if 2
2114 InitRead are called, since now we don't throw everything into
2115 RegisterWaitForSingleObject but one request at a time.
2117 * WebConnectionGroup.cs: when checking available connections, allow them
2118 not to be Connected but allocated to honor the connection limit.
2120 * WebConnectionStream.cs: CheckComplete() now checks for nextReadCalled
2121 too. ReadAll don't mess contentLength if it's provided in the headers.
2123 BIG thanks to Lluis. Turns out that we were debugging the same stuff and
2124 his Data.Init discovery was THE thing I was missing.
2128 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2130 * ServicePointManager.cs: use GetMaxConnections to get the appropiate
2131 number of connections limit.
2133 2004-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2135 * MonoHttpDate.cs: use the invariant culture, not en-US. Suspected
2136 guilty for bug 52629.
2138 2003-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2140 * CredentialCache.cs: return null instead of throwing NotImplemented.
2142 2003-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2144 * HttpWebRequest.cs: fixed checking if method allows a body. Patch by
2145 Benjamin Jemlich (pcgod@gmx.net).
2147 2003-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2149 * HttpWebRequest.cs: deal with authentication schemes that have more
2150 than 1 round trip (Ntlm).
2152 2003-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2154 * NtlmClient.cs: new class that actually uses one from Mono.Http to do
2157 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2159 * HttpWebRequest.cs: when building the redirect URI, use the previous
2160 one as the base URI, which makes relative URIs work.
2162 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2164 * DigestClient.cs: merged in code from Sebastien Pouliot and Greg
2165 Reinacker that Supports cnonce and preauthentication.
2167 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2169 * DigestClient.cs: initial Digest authentication. Works with apache
2172 2003-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2174 * HttpWebRequest.cs: removed unneeded StringBuilder.
2175 * WebConnection.cs: default to keep the connection open for HTTP/1.1
2176 only or HTTP/1.0 + (Proxy-)Connection header. Fixes bug #51208.
2178 2003-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2180 * WebConnection.cs: turns out that socket.Connected is not useful until
2181 we actually try to send/receive data, even if the other end has already
2182 closed the socket. Added TryReconnect() and Connected.
2184 * WebConnectionData.cs: default value for StatusCode is 0 now.
2186 * WebConnectionGroup.cs: reuse the connection since the beginning,
2187 instead of opening up to ConnectionLimit and then reusing.
2189 * WebConnectionStream.cs: reopen the socket if we're trying to reuse
2190 one which fails on first write.
2192 2003-11-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2194 * WebConnectionStream.cs: when a callback is passed to BeginRead/Write,
2195 wrap it and do our job before calling it. Fixes bug #48497.
2197 2003-11-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2199 * WebExceptionStatus.cs: Restyled, Added .Net 1.1 members
2200 * SecurityProtocolType.cs: Added and implemented
2202 2003-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2204 * HttpWebRequest.cs: fixed redirects when they target another host.
2206 2003-11-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2208 * IPAddress.cs: prevent exceptions when trying to parse the static IPv6
2211 2003-10-17 Pedro Martinez Julia <yoros@wanadoo.es>
2213 * WebClient.cs: use Path.DirectorySeparator instead of "/" for
2214 windows compatibility. Add some checks for file paths like
2215 "C:/xxx/yyy/..." and like "/home/xxx/...".
2217 2003-10-16 Pedro Martinez Julia <yoros@wanadoo.es>
2219 * WebClient.cs: added a slash between directory and file names.
2221 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2223 * HttpWebRequest.cs:
2224 * HttpWebResponse.cs: better abort handling and leave the stream in a
2225 stable status on abort.
2227 2003-10-12 Pedro Martinez Julia <yoros@wanadoo.es>
2229 * WebClient.cs: refine reading of local files (like MS.NET).
2231 2003-10-10 Pedro Martinez Julia <yoros@wanadoo.es>
2233 * WebClient.cs: MS.NET works right when we try OpenRead("file.txt")
2234 but we didn't. Now, when Uri fails with an exception, it adds
2235 "file://" before the URI and tries again.
2237 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2239 * ServicePoint.cs: preparing for recycling. Not yet finished.
2240 * ServicePointManager.cs: this is the one that reads config.
2241 * WebConnectionGroup.cs: don't read config here.
2242 * WebConnection.cs: added the queue again. Launch queued requests on
2245 2003-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2247 * WebConnection.cs: the queue is now handled by the threadpool.
2248 Initialize the connection data in a place where it does not depend on
2249 the execution order of the requests in threadpool. More error handling.
2251 * WebConnectionGroup.cs: use the limits in the config file and reuse
2252 connections when the limit is reached.
2254 2003-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2256 * HttpWebRequest.cs: handle 304 a la MS.
2257 * WebConnection.cs: set the response data when reading 0 bytes.
2259 2003-09-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2261 * WebConnectionStream.cs: fix by Lluis to avoid the stream being in an
2264 2003-08-14 Nick Drochak <ndrochak@gol.com>
2266 * WebRequest.cs: Check lower case string since that is what we will add.
2268 2003-08-04 Jerome Laban <jlaban@wanadoo.fr>
2270 * IPHostEntry.cs: Default contructor must not initialize members.
2273 2003-07-27 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2275 * CredentialCache.cs: Removed undefined serializable attribute
2277 2003-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2280 (WantMore): true if we've not received the last chunk yet. Fixes
2281 bug #45463. Thanks to Miguel for tracking this down and providing a
2284 * WebConnection.cs: removed bogus ^M's.
2286 * WebHeaderCollection.cs: provide more info when the header or value is
2289 2003-07-15 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2291 * ChunkStream.cs: Removed unused members
2292 * IPAddress.cs: Removed unused exception variable, fixes compiler
2294 * WebConnection.cs: Removed unused exception variables, fixes compiler
2297 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
2299 * NetConfig.cs: If Clone method is not public, then it must use
2300 explicit interface method implementation syntax.
2302 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
2304 * Dns.cs: Reworked indentation.
2306 Added literal address checking in GetHostByAddress.
2307 Changed Dns.Resolve behavior.
2309 * IPEndPoint.cs: Added IPv6 support.
2310 * IPv6Address.cs: Added address compression.
2311 * NetConfig.cs: Added configuration section.
2313 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
2315 * ServicePoint.cs: Removed Connect and GetEndPoint methods.
2316 Removed reverse resolution when uri is literal IP address.
2317 * WebConnection.cs: IPv6 compatibility update: Try to connect
2318 to all addresses returned by IPHostEntry.
2319 * WebConnectionGroup.cs: Removed unused parameter.
2321 2003-07-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2323 * WebProxy.cs: Add serialization/ deserialization support
2325 2003-07-10 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2328 * WebStatus.cs: Deleted (do not exist in this assembly)
2329 * IPv6Address.cs: Made internal
2331 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2333 * HttpWebRequest.cs:
2334 * ServicePointManager.cs:
2335 * WebConnection.cs: added support for proxies.
2337 2003-07-05 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2339 * DnsPermissionAttribute.cs:
2340 * SocketPermissionAttribute.cs: Fixed wrong AttributeUsageAttribute
2342 2003-07-05 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2344 * WebPermission.cs: Added and partially implemented
2345 * WebPermissionAttribute.cs: Added and implemented
2347 2003-07-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2349 * WebClient.cs: fixed bug #45651.
2351 2003-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2353 * WebClient.cs: Small fix by Sebastian <scut@nb.in-berlin.de>.
2355 2003-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2357 * WebConnection.cs: fixed header writing the reusing a connection and
2358 the server does not send 100-continue response.
2360 2003-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2362 * WebConnection.cs: close the socket and connection when disposing.
2363 * WebRequest.cs: removed setter for RequestUri. Allow non-public ctors
2364 when creating instances.
2366 * HttpWebRequest.cs:
2367 * HttpWebResponse.cs:
2368 * FileWebRequest.cs: support serialization.
2370 * FileWebResponse.cs: support serialization and fixed dispose checks.
2372 * FileWebRequestCreator.cs:
2373 * HttpRequestCreator.cs: added internal .ctor.
2375 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
2377 * HttpWebRequest.cs: SetWriteStream(): SendRequestHeaders should be
2378 called before asyncWrite.SetCompleted, to make sure that the waiting
2379 thread does not start to send more information before
2380 SendRequestHeaders has finished.
2382 2003-06-22 Lluis Sanchez Gual <lluis@ximian.com>
2384 * WebConnectionStream.cs: Only increment pendingReads if an asynchronous
2385 read is really needed.
2387 2003-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2389 * WebHeaderCollection.cs: prevent duplication headers used niternally.
2391 2003-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2393 * HttpWebRequest.cs: if CookieContainer has not been set, make
2394 HttpWebResponse ignore Set-Cookie* headers.
2396 * HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if
2397 CookieContainer have been provided to the request.
2399 2003-06-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2401 * AuthenticationManager.cs: get the list of authentication modules from
2402 the configuration files. Added Clear and fixed Unregister.
2404 * BasicClient.cs: fully implemented.
2406 * HttpWebRequest.cs: added support for Basic authentication when
2407 credentials are set.
2409 * NetworkCredential.cs: fixed GetCredential.
2411 2003-06-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2413 * HttpWebRequest.cs: *really* take care of requestSent to prevent
2414 sending the same request twice.
2415 * WebAsyncResult.cs: don't close the handle. Just Reset.
2416 * WebConnectionStream.cs: removed unneeded line.
2418 2003-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2420 * HttpWebRequest.cs: use InternalClose when we are not going to send the
2421 rest of the request stream because of an error after sending the
2424 * WebConnection.cs: check for completion after setting the response.
2425 Enable reading in NextRead.
2427 * WebConnectionStream.cs: re-fixed the count for partially buffered
2428 reads. If the network stream returns 0 bytes, we're done.
2430 2003-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2432 * WebClient.cs: implemented UploadFile. Fixed SetupRequest to set the
2433 special headers *after* the others.
2435 2003-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2437 * WebConnectionStream.cs: when the read is partially filled from the
2438 initial buffer, add those bytes too. Thanks to Lluis for debugging this.
2440 2003-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2442 * HttpWebRequest.cs: added ExpectContinue property.
2443 * WebConnection.cs: allow 100 Continue to be delayed after waiting for
2446 2003-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2448 * HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
2449 is known not to respond to that.
2451 * ServicePoint.cs: added SendContinue property.
2453 * WebConnection.cs: only wait 2 seconds for a continue reply. If it
2454 timeouts, set SendContinue to false and proceeed sending data.
2456 * WebConnectionStream.cs: if 100-continue is not received and instead we
2457 get a 417 or anything else, don't send the data.
2459 * WebClient.cs: implemented all missing properties and methods except
2462 2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2464 * FileWebRequestCreator.cs: splitted from WebRequest.
2465 * HttpRequestCreator.cs: splitted fromWebRequest.
2466 * WebRequest.cs: added methods that are used by the new configuration
2467 handler to set prefix/type name requests creators.
2469 2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2471 * AuthenticationManager.cs:
2473 * BasicClient.cs: new file.
2474 * ChunkStream.cs: new file.
2476 * CookieContainer.cs:
2477 * GlobalProxySelection.cs:
2478 * HttpWebRequest.cs:
2479 * HttpWebResponse.cs:
2480 * IAuthenticationModule.cs:
2482 * ServicePointManager.cs:
2483 * WebAsyncResult.cs: new file.
2484 * WebConnection.cs: new file.
2485 * WebConnectionData.cs: new file.
2486 * WebConnectionGroup.cs: new file.
2487 * WebConnectionStream.cs: new file.
2489 * WebHeaderCollection.cs:
2493 Reworked HttpWebRequest and related classes.
2495 2003-05-30 Miguel de Icaza <miguel@ximian.com>
2497 * HttpWebRequest.cs (EndGetResponse): Do not throw exceptions on
2498 InternalServerError (500)
2500 2003-05-29 Miguel de Icaza <miguel@ximian.com>
2502 * HttpWebRequest.cs (Close): Move the code that accumulates the
2503 output to Close from Flush. Flush could have been called in the
2504 middle of the processing, and would have generated invalid results
2507 2003-05-23 Zoltan Varga <vargaz@freemail.hu>
2509 * Dns.cs (GetHostByAddress): Return the local host when called with
2512 2003-04-29 Miguel de Icaza <miguel@ximian.com>
2514 * WebClient.cs (DownloadData): Close the underlyng stream.
2515 (DownloadFile): Use using, so the file gets closed.
2517 2003-04-24 Miguel de Icaza <miguel@ximian.com>
2519 * WebClient.cs (DownloadData): Instead of using a MemoryStream,
2520 keep track of all the small chunks in an ArrayList. The
2521 MemoryStream had the property of reallocating itself, and the
2522 problem was that MemoryStream.GetBuffer would return the buffer
2523 (correctly), but not something of the right size. So clients of
2524 DownloadData would get the extra unused bytes as part of the
2527 The solution would have been to make another copy at this point,
2528 instead, we only keep the small allocations around in the
2529 ArrayList, and we only do one large allocation at the end.
2531 * HttpWebResponse.cs: If there is a Content-Length header, pass
2532 this information to our HttpWebResponseStream, so it knows when to
2533 stop, instead of waiting for the stream to be shut down by the
2536 * HttpWebRequest.cs: Only set the `delay-header-writing' mode on
2537 the underlying stream if the method will do a content transfer and
2538 no Content-Length was provided. If not (HEAD and GET or
2539 Content-Length provided), keep going.
2541 2003-04-23 Miguel de Icaza <miguel@ximian.com>
2543 * HttpWebRequest.cs: .NET Allows the HttpWebRequest to not have
2544 the ContentLength specified on the request. If that happens, we
2545 have to accumulate all the data written, and once we accumulate
2546 the data, we send it off.
2548 Notice that the documentation in .NET is actually incorrect, they
2549 state that setting ContentLength is mandatory. It is not.
2551 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2553 * HttpWebResponse.cs: fixes bug #41180.
2555 2003-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2557 * HttpWebRequest.cs: throw an exception is the response code is >= 300.
2559 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2561 * HttpWebRequest.cs: implemented IDisposable, make the request stream
2562 read only. Changed the way of disposing the socket.
2564 * HttpWebResponse.cs: wrapped the socket in a write-only NetworkStream,
2565 handle chunked transfer encoding (no more hangs), added serialization
2566 stuff, call CheckDisposed at the beginning of methods/properties (not
2567 in a finally clause).
2569 2003-02-17 Nick Drochak <ndrochak@gol.com>
2571 * WebClient.cs : Implemented Credentials property.
2573 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2575 * SocketAddress.cs: byte 1 of the data is the high byte of the family,
2578 2003-01-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2580 * WebClient.cs : hacked OpenRead, DownloadData and DownloadFile.
2582 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2584 * HttpWebRequest.cs: applied patch from Tim Haynes
2585 (thaynes@openlinksw.com).
2587 Avoided double-sending of the request to the server when both
2588 GetRequestStream() and GetResponse() are called.
2589 System Header attributes survive the Headers attribute set.
2590 Added handling of Connection: KeepAlive/Close
2592 2002-10-03 Dick Porter <dick@ximian.com>
2594 * Dns.cs: Fixed GetHostName()
2596 2002-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2598 * HttpWebRequest.cs:
2599 * HttpWebResponse.cs: applied another patch from Shahms E. King
2600 (shahms@shahms.com).
2602 2002-09-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2604 * HttpWebRequest.cs:
2605 * HttpWebResponse.cs: applied patch from Shahms E. King
2606 (shahms@shahms.com).
2608 2002-05-29 Lawrence Pit <loz@cable.a2000.nl>
2610 * MonoHttpDate.cs: added
2611 * HttpWebRequest.cs: using MonoHttpDate
2612 * HttpWebResponse.cs: using MonoHttpDate
2613 * DnsPermission.cs: correct XML output
2614 * SocketPermission.cs: correct XML output
2616 2002-05-21 Lawrence Pit <loz@cable.a2000.nl>
2618 * WebClient.cs: stubbed
2619 * WebProxy.cs: fixed bug; had to change internal representation
2620 of bypasslist to ArrayList, different implementation of checking
2623 2002-05-20 Lawrence Pit <loz@cable.a2000.nl>
2625 * WebProxy.cs: added, implemented
2626 * ServicePoint.cs: implemented most
2627 * ServicePointManager.cs: implemented
2628 * HttpWebRequest.cs: started implementation
2629 * HttpWebResponse.cs: improved disposable routines
2630 * FileWebRequest.cs: slight improvement of Close method
2632 2002-05-19 Lawrence Pit <loz@cable.a2000.nl>
2634 * FileWebRequest.cs: finished implementation of async methods.
2635 * FileWebResponse.cs: improved disposable routines.
2636 * IPEndPoint.cs: fixed bug #24666 in Serialize and Create methods,
2637 byte ordering of address was backwards.
2639 2002-05-13 Lawrence Pit <loz@cable.a2000.nl>
2641 * Dns.cs: Reimplemented (simplified and fixed) asynchronous methods by
2642 relying on standard asynchronous delegate features. Added checks for
2644 * HttpWebResponse.cs: implemented properties
2645 * FileWebResponse.cs: improved the way resources are disposed.
2646 * FileWebRequest.cs: started implementation of asynchronous methods
2647 * ServicePointManager.cs: implemented properties
2649 2002-05-12 Lawrence Pit <loz@cable.a2000.nl>
2651 * HttpWebRequest.cs: properties implemented
2652 * HttpWebResponse.cs: added
2653 * GlobalProxySelection.cs: implemented
2654 * FileWebResponse.cs: added
2655 * FileWebRequest.cs: some methods implemented
2657 2002-05-11 Lawrence Pit <loz@cable.a2000.nl>
2659 * WebHeaderCollection.cs: implemented
2660 * WebRequest.cs: implemented
2661 * FileWebRequest.cs and HttpWebRequest.cs stubs added
2663 2002-05-09 Lawrence Pit <loz@cable.a2000.nl>
2665 * Rewrote IPAddress.Parse method, passing all unit tests
2667 2002-05-09 Lawrence Pit <loz@cable.a2000.nl>
2669 * fixed bug in IPEndPoint.Equals method
2670 * fixed bug in IPAddress.Parse method
2671 * fixed bug in IPAddress.SwapLong method
2672 * fixed several bugs in Cookie.cs
2674 2002-05-06 Lawrence Pit <loz@cable.a2000.nl>
2676 * WebRequest.cs: added
2677 * WebResponse.cs: implemented
2678 * WebException.cs: implemented
2679 * WebHeaderCollection.cs: added
2680 * HttpVersion.cs: implemented
2681 * HttpContinueDelegate.cs: added
2682 * IWebProxy.cs: added
2683 * IWebRequestCreate.cs: added
2684 * ICertificatePolicy.cs: added
2685 * ServicePoint.cs: stubbed
2686 * ServicePointManager.cs: stubbed
2687 * CookieContainer.cs: added
2688 * Authorization.cs: implemented
2690 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
2692 * CredentialCache.cs: implemented
2694 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
2696 * IPAddress.cs: fixed IsLoopback, address was already in host order
2698 2002-05-05 Lawrence Pit <loz@cable.a2000.nl>
2700 * IPv6Address.cs: added (note: not part of .net spec)
2702 2002-05-01 Lawrence Pit <loz@cable.a2000.nl>
2704 * DnsPermission.cs: implemented
2705 * DnsPermissionAttribute.cs: implemented
2707 2002-04-28 Lawrence Pit <loz@cable.a2000.nl>
2709 * EndpointPermission.cs: implemented
2710 * SocketPermission.cs: implemented
2711 * SocketPermissionAttribute.cs: implemented
2712 * ProtocolViolationException.cs: implemented
2713 * Dns.c: passing w32 error code when no host found
2715 2002-04-27 Lawrence Pit <loz@cable.a2000.nl>
2717 * Cookie.cs: implemented
2718 * CookieCollection.cs: implemented
2719 * CookieException.cs: implemented
2721 2002-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2723 * IPAddress.cs: initialize the read only fields with Parse().
2725 2002-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2727 * IPAddress.cs: little changes to behave as MS.
2729 2002-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2731 * Dns.cs (Resolve): behave as MS. Agreed with Mads.
2733 2002-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2735 * IPAddress.cs: the icalls for sockets are endianness-aware. So I
2736 changed a few things. Also included a workaround for bug #23547.
2738 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2740 * IPAddress.cs: use System.BitConverter.IsLittleEndian (suggested
2741 by Paolo) instead of guessing the endianness.
2743 * SocketAddress.cs: implemented Equals() and GetHashcode().
2745 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2747 * IPEndPoint.cs: modifications to constructors according to the
2748 specifications (suggested by Lawrence Pit).
2750 2002-04-15 Patrik Torstensson <patrik.torstensson@labs2.com>
2752 * IPEndPoint.cs: Fixed build breaker.
2754 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2756 * IPEndPoint.cs: implemented Equals() and GetHashCode(). Now 100%
2759 2002-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2761 * IPAddress.cs: finished all MonoTODO's. Use network order to store
2762 the address. Check for max and min values in Address:set. IsLoopback()
2763 returns now true for all 127.x.y.z. Some more checks in Parse ().
2764 Some changes to behave as MS does.
2766 2002-02-24 Duncan Mak <duncan@ximian.com>
2768 * ICredentialLookup.cs: Added the GetCredential method to the
2769 interface. The interface is named "ICredentials", should this file
2772 * NetworkCredential.cs: Added to CVS. Need to investigate on how
2773 GetCredential() works
2775 2002-01-23 Dick Porter <dick@ximian.com>
2777 * SocketAddress.cs: Implemented.
2779 * IPEndPoint.cs: Turned 'Address' field into a real property.
2780 Implemented Create() and Serialize() methods.
2782 * IPAddress.cs: Fixed class constructor, turned 'Address' field
2783 into a real property. Removed undocumented "public
2784 IPAddress(string)" constructor.
2786 * EndPoint.cs: Implemented. All methods return
2787 NotSupportedException to enforce subclass overriding.
2789 * Dns.cs: Replaced fixed-layout Hostent struct and cygwin
2790 P/Invokes with portable internal calls.
2792 2002-01-17 Miguel de Icaza <miguel@ximian.com>
2794 * Dns.cs: Updated to API changes.
2796 * IPAddress.cs: Updated API. Much left to implement.
2798 * Dns.cs: Remove IPToString method
2800 2002-01-06 Ravi Pratap <ravi@ximian.com>
2802 * Dns.cs, AuthenticationManager.cs, SocketAddress.cs : MonoTODO
2803 attribute insertion.
2805 2001-11-22 Nick Drochak <ndrochak@gol.com>
2807 * IPAddress.cs: Fix constructor bug, properly name Address property,
2808 and use triple-slash for comments.
2810 2001-11-20 Miguel de Icaza <miguel@ximian.com>
2812 * IPAddress.cs: Updated to contain Any, Broadcast, Loopback and
2813 None as suggested by Phillip.
2815 2001-09-26 Mads Pultz <mpultz@get2net.dk>
2816 * Dns.cs: Initial work on BeginGetHostByName and EndGetHostByName implemented.
2818 2001-09-24 Mads Pultz <mpultz@get2net.dk>
2820 * Dns.cs: Minor changes (some print statements removed)
2822 2001-09-23 Mads Pultz <mpultz@get2net.dk>
2824 * Dns.cs: Initial work submitted to repository.
2825 * IPHostEntry.cs: Initial work submitted to repository.
2827 2001-07-12 Sean MacIsaac <macisaac@ximian.com>
2829 * Authorization.cs: Fixed compiler error.
2831 * IAuthenticationModule.cs: Changes for Beta2.
2833 * IPAddress.cs: Internal storage changed to be uint not int.
2835 * IPEndPoint.cs: Fixed compiler error.
2837 * EndPoint.cs: Fixed compiler error.
2839 * AuthenticationManager.cs: Fixed typo.