Fixes: #341443
[mono.git] / mcs / class / System / System.Net / ChangeLog
1 2008-09-08  Miguel de Icaza  <miguel@novell.com>
2
3         * EndPointListener.cs (SearchListener): Cope with the raw_url not
4         being merely a path, but potentially a full URI (see the proxy
5         case). 
6
7         * HttpListenerRequest.cs: Cope with raw_url not being merely a
8         path, but potentially a full Uri.   Also uses TryCreate, hoping
9         that one day it will be faster.
10
11 2008-08-23  Zoltan Varga  <vargaz@gmail.com>
12
13         * WebConnectionStream.cs (WriteRequest): Fix the copying in the
14         previous patch, when bytes.Length != length.
15
16 2008-08-22  Zoltan Varga  <vargaz@gmail.com>
17
18         * WebConnectionStream.cs (WriteRequest): For small requests,
19         cluster together the header + body in a single write call, avoids
20         the latency problems observed in an TLS application that makes
21         many web service calls. 
22
23 2008-08-22  Geoff Norton  <gnorton@novell.com>
24
25         * WebConnection.cs: Set NoDelay
26
27 2008-08-21  Stephane Delcroix  <sdelcroix@novell.com>
28
29         * OpenReadCompletedEventArgs.cs: new Address property for 2.1
30
31 2008-08-06  Miguel de Icaza  <miguel@novell.com>
32
33         * IPAddress.cs (ParseIPV6): Use an exception-less parser for ipv6
34         addresses.
35
36         * IPv6Address.cs: Rewrite most of the parsing code to not use that
37         incredibly fragile, hacky and hacky implementation.
38
39         (TryParse): Provide a exception-less parsing path.
40
41 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>µ
42
43 2008-08-06  Atsushi Enomoto  <atsushi@ximian.com>
44
45         * IPAddress.cs : several IPv4 parsing fix exposed by bug #411920.
46
47 2008-08-05  Atsushi Enomoto  <atsushi@ximian.com>
48
49         * WebClient.cs : it should not invoke delegate directly, but should
50           call overridable OnDownloadProgressChanged.
51
52 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>μ
53
54         * HttpWebResponse.cs: Initialize contentLength in ctor, as it must
55         remain accessible after the response is disposed (and the headers are
56         no longer available). Adding missing disposed checks in properties
57         (except for StatusCode) and GetResponseHeader. On the 2.0 profile,
58         headers must remain accessible after the HttpWebResponse is disposed.
59
60 2008-06-10  Stephane Delcroix  <sdelcroix@novell.com>
61
62         * IPAddress.cs: allow usage on 2.1 as smcs knows nothing about
63         string.GetEnumerator : IEnumerable<char>
64
65 2008-06-08  Miguel de Icaza  <miguel@novell.com>
66
67         * ResponseStream.cs: Do not Close the HttpResponse object here as
68         it is possible to issue multiple OutputStream.Close calls (they
69         actually happen implicitly through things like StreamWriter.Close,
70         and they are in various MSDN samples).
71
72 2008-05-28 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
73
74         * CookieContainer.cs: apply slightly modified patch from rulatir@wp.pl
75         that fixes bug #356537.
76
77 2008-04-30  Miguel de Icaza  <miguel@novell.com>
78
79         * WebPermission.cs (ToXml): To allow code that uses WebPermission
80         to be built. 
81
82 2008-04-21 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
83
84         * HttpWebResponse.cs: do not check the disposed status for properties
85         and methods that return response data other than the stream itself.
86         Fixes bug #381223.
87
88 2008-04-16  Marek Habersack  <mhabersack@novell.com>
89
90         * HttpWebRequest.cs: fix an off-by-one bug - the number of
91         redirects must not exceed the value of
92         MaximumAutomaticRedirections. Fixes bug #380131
93
94 2008-04-13  Jb Evain  <jbevain@novell.com>
95
96         * *_2_1.cs: move the specific 2.1 System.Net code to the
97         assembly System.Net.
98
99 2008-04-13  Jb Evain  <jbevain@novell.com>
100
101         * WebRequest_2_1.cs, WebResponse_2_1.cs: new files
102         * HttpWebRequest_2_1.cs, HttpWebResponse_2_1, WebHeaderCollection_2_1:
103         update to Silverlight 2.0b1 API.
104         Merged from the Moonlight 2 branch.
105
106 2008-04-06  <gnorton@novell.com>
107
108         * ListenerAsyncContext.cs: Fix Basic authentication support.  Patch from 
109         Maciej Paszta <paszczi@go2.pl>
110
111 2008-02-21  Zoltan Varga  <vargaz@gmail.com>
112
113         * HttpConnection.cs (Close): Close the socket even if Shutdown throws an exception.
114
115 2008-02-17  Daniel Nauck  <dna@mono-project.de>
116
117         * HttpWebResponse.cs: refactored cookie expires parsing to
118         allow all common expires datetime formats.
119
120 2008-02-09  Daniel Nauck  <dna@mono-project.de>
121
122         * HttpWebResponse.cs: convert UTC/GMT Expires DateTime from a cookie
123         into local time, also set the HttpOnly property if available.
124
125 2008-02-09  Daniel Nauck  <dna@mono-project.de>
126
127         * Cookie.cs: implemented HttpOnly
128
129 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
130
131         * IPAddress.cs (Parse): Changed argument name to match MS.
132         (TryParse): Changed argument name to match MS.
133         (ParseIPV4): Only treat zero-length or " " address as empty on 1.0
134         profile. On 2.0 profile, only ignore characters after blank if last
135         part is valid hex string.
136         * IPv6Address.cs: Removed extra spaces and tabs.
137
138 2008-01-26  Daniel Nauck  <dna@mono-project.de>
139
140         * HttpWebRequest.cs: fixed typo. Use the actual uri for correct
141         cookie header informations and not the originally one.
142
143 2008-01-26  Daniel Nauck  <dna@mono-project.de>
144
145         * Cookie.cs: set Version to '1' if Port is set,
146         don't include path and domain informations when version is 0,
147         match ToString () output with .NET 2.0,
148         fixes bug #316017
149
150 2008-01-15  Atsushi Enomoto  <atsushi@ximian.com>
151
152         * MonoHttpDate.cs : Parse() should return Local time. Fixed bug
153           #353495.
154
155 2008-01-12  Gert Driesen  <drieseng@users.sourceforge.net>
156
157         * WebClient.cs: Do not add trailing CRLF in UploadValuesCore. Fixes
158         standalone test for bug #351049.
159
160 2008-01-07  Sebastien Pouliot  <sebastien@ximian.com>
161
162         * CredentialCache.cs: Gendarme's AvoidToStringOnStringsRule in
163         CredentialCacheKey constructor. UseStringEmptyRule on CredentialCache
164         static ctor (3 times).
165
166 2007-12-27  Miguel de Icaza  <miguel@novell.com>
167
168         * WebClient.cs: We catch exceptions that happen on the helper
169         async threads toa void terminating the application on errors, and
170         also raise a variant of the OnXXXXCompleted methods that take an
171         Exception argument.
172
173         Note that this differs from the .NET implementation in that
174         we actually raise a signal on error, and set the exception, and in
175         their case no error is ever raised.
176
177         We now call CompleteAsync in the OnXXXCompleted handlers to ensure
178         that the WebClient can be reused immediately by the callback.
179
180         This fixes #350621.
181
182         This also should fix the bug report on IRC where someone
183         complained that they could not "chain" invocations to XXXAsync
184         methods from the OnXXXXCompleted handlers due to the WebClient
185         refusing to work if there was an ongoing operation
186
187 2007-12-24  Miguel de Icaza  <miguel@novell.com>
188
189         * WebClient.cs: Do not validate method to be null, we do not do
190         that in OpenWrite, the detection is done later on.  
191
192         Fixes #350622
193
194 2007-12-16  Miguel de Icaza  <miguel@novell.com>
195
196         * WebClient.cs: Got the arguments in the wrong order, fix
197
198 2007-12-12  Marek Habersack  <mhabersack@novell.com>
199
200         * WebClient.cs: DownloadProgressChanged is available only in the
201         2.0+ profiles.
202
203 2007-12-12  Miguel de Icaza  <miguel@novell.com>
204
205         * WebClient.cs (DownloadFileCore): use longs for the
206         ContentLength, although the other code (loading into a byte array,
207         or a string) still uses ints, the DownloadFileCore should not.
208
209 2007-12-11  Miguel de Icaza  <miguel@novell.com>
210
211         * WebClient.cs: 
212
213         Lots of fixes to get the *Async methods to work.
214         
215         * WebClient.cs: async, new boolean flag, used to track whether we
216         are an async invocation, and if so, we need to invoke some
217         methods. 
218
219         Switch to using System.Threading.Thread instead of the ThreadPool
220         as there is no way with the ThreadPool to abort threads (to
221         implemente CancelAsync). 
222
223         (CompleteAsync): Helper method used to clear the state after an
224         async operation completes, otherwise the WebClient can only be
225         used once. 
226
227         (CancelAsync): Use Thread.Interrupt to signal the thread that we
228         are aborting it (it is a lot milder than Thread.Abort, and we are
229         in no rush to cancel this anyways); Also the documentation states
230         that we need to call the WebRequest.Abort method, so we do that in
231         every Download instance.
232
233         (DownloadDataAsync, DownloadFileAsync, DownloadStringAsync,
234         OpenReadAsync, OpenWriteAsync, UplaodDataAsync, UploadFileAsync,
235         UploadStringAsync): Make signature parameters match MS; use
236         threads instead of threadpool (so we can implement CancelAsync),
237         catch ThreadAbortException here so we can also raise the proper
238         DownloadDataCompleteEventArgs.
239
240         These routines will also call the WebRequest.Abort when
241         appropriate when ThreadInterrupted is used.
242         
243         (ReadAll): Raise DownloadProgressChanged events.
244         
245 2007-12-03  Gert Driesen  <drieseng@users.sourceforge.net>
246
247         * WebClient.cs: Modified argument checks to match MS, and wrap
248         exceptions in a WebException. Fixes bug #343064.
249
250 2007-12-03  Miguel de Icaza  <miguel@novell.com>
251
252         * FtpWebRequest.cs: Applied patch from Jerome Haltom that fixes
253         multi-line responses (after my fix).
254
255         Closes #333978
256
257 2007-11-16  Marek Habersack  <mhabersack@novell.com>
258
259         * HttpWebRequest.cs: when folding a request into a GET one, set
260         content length to 0 and kill the buffers. Fixes bug #327314. Patch
261         from Geoff Norton <gnorton@novell.com>, thanks!
262
263 2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
264
265         * WebRequest.cs : added missing ImpersonationLevel (NIE).
266         * SecurityProtocolType.cs : not [Serializable] in 2.0.
267         * ServicePoint.cs : no GetHashCode() in 2.0.
268         * WebRequestMethods.cs : fixed wrong STOU.
269         * FileWebResponse.cs : no Dispose(true) in 2.0 API.
270
271 2007-11-08  Jb Evain  <jbevain@novell.com>
272
273         * WebHeaderCollection_2_1.cs: add a custom WebHeaderCollection
274         for the 2.1 profile.
275
276 2007-11-07  Geoff Norton  <gnorton@novell.com>
277
278         * ListenerAsyncResult.cs: Only send the 401 header if our authentication
279         type is Basic or Negotiate (which we default to basic) because that is
280         all we support.  Set the WWW-Authenticate header when we return a 401 
281         result.  Send the correct state object in the async result.
282
283 2007-11-06  Geoff Norton  <gnorton@novell.com>
284
285         * ListenerAsyncResult.cs: If the HttpListener has an authentication
286         scheme, the user should be presented with a 401 without calling the 
287         callback.
288
289 2007-11-04  Miguel de Icaza  <miguel@novell.com>
290
291         * FtpWebRequest.cs (GetResponseStatus): Fix this routine
292         propertly, refactor, and make it follow Mono coding conventions.
293
294 2007-10-30  Jerome Haltom  (wasabi@larvalstage.net)
295
296         * FtpWebRequest.cs: adds support for ftp multiline results, fixes
297         #333978
298
299 2007-10-27  Miguel de Icaza  <miguel@novell.com>
300
301         * HttpListener.cs: Remove more trigger-happy disposed=true from
302         the code;   We should only dispose when the Dispose method is
303         actually called.   Not before.  
304
305         Fixes #337371
306
307         *  HttpListener.cs (Close): Closing does not mean dispose the
308         object.   This allows Start/Stop/Start to be called as many times
309         as desired.
310
311         Fixes #337368
312
313 2007-10-15  Gert Driesen  <drieseng@users.sourceforge.net>
314
315         * FtpWebRequest.cs: Added support for DELETE.
316
317 2007-10-15  Gert Driesen  <drieseng@users.sourceforge.net>
318
319         * WebRequest.cs: Changed serialization ctor to throw NIE on 1.0
320         profile. Cache default proxy, but still allow it to be explicitly set
321         to null. Removed commented code.
322
323 2007-10-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
324
325         * WebRequest.cs: DefaultWebProxy allows a null value. Fixes bug #323668.
326
327 2007-09-30  Gert Driesen  <drieseng@users.sourceforge.net>
328
329         * HttpListenerRequest.cs: Do not store 'method' in upper case, but
330         instead use case-insensitive comparison.
331
332 2007-09-30  Gert Driesen  <drieseng@users.sourceforge.net>
333
334         * HttpListenerRequest.cs: Removed dead code. USe String.Length to
335         check for zero-length string. Use instance field for is_chunked, and
336         also set it for GET/HEAD/DELETE. Fixed HasEntityBody to return true
337         when Content-Length > 0, or Transfer-Encoding is chunked.
338
339 2007-09-28  Marek Habersack  <mhabersack@novell.com>
340
341         * HttpListenerRequest.cs: make sure 'method' is always stored in
342         upper case.
343         The DELETE method must not error out on missing Content-Length
344         header (this is the behavior of the MS.NET version of the
345         class). Fixes bug #323215.
346         HasEntityBody should return false when method is GET/HEAD,
347         content_length is less than or equal to zero or the request is
348         chunked. Fixes bug #325296
349
350 2007-08-29  Atsushi Enomoto  <atsushi@ximian.com>
351
352         * IPAddress.cs, IPv6Address.cs : (ToString) output ScopeId.
353
354 2007-08-09  Atsushi Enomoto  <atsushi@ximian.com>
355
356         * HttpWebRequest_2_1.cs, HttpWebResponse_2_1.cs :
357           added new sources for those classes for 2.1 (in 2.1 they are
358           almost abstract, while in 2.0 they are concrete).
359         * HttpRequestCreator.cs, ServicePoint.cs :
360           #ifdef 2.0 dependencies out.
361
362 2007-06-28  Chris Howie  <cdhowie@nerdshack.com>
363
364         * ServicePoint.cs: Implemented BindIPEndPointDelegate.
365         * FtpWebRequest.cs: Respect ServicePoint.BindIPEndPointDelegate.
366         * WebConnection.cs: Respect ServicePoint.BindIPEndPointDelegate.
367
368 2007-08-08  Jb Evain  <jbevain@novell.com>
369
370         * HttpWebRequest.cs: .ctor(Uri) is public in 2.1.
371
372 2007-08-03  Jb Evain  <jbevain@novell.com>
373
374         * Dns.cs: remove async methods for the 2.1 profile.
375
376 2007-07-17  Rodrigo Kumpera  <rkumpera@novell.com>
377
378         * HttpListenerRequest.cs: Support for Cookie decoding.
379         * HttpListenerResponse.cs: Support for encoding cookies on the response sent to the client
380         * Cookie.cs: new internal method to encode the Cookie in a proper form to sent to clients
381
382 2007-07-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
383
384         * WebConnectionStream.cs: implement the CanTimeout for 2.0. Fixes
385         bug #81504.
386
387 2007-07-12  Geoff Norton  <gnorton@customerdna.com>
388
389         * HttpListenerContext.cs: 
390         * HttpListener.cs: Handle HttpListener AuthenticationSchemes
391         Only Basic authentication is included for now.
392
393 2007-06-30  Gert Driesen  <drieseng@users.sourceforge.net>
394
395         * NetworkAccess.cs: Only mark as flags enum on 2.0.
396
397 2007-06-21  Dick Porter  <dick@ximian.com>
398
399         * AuthenticationManager.cs: 
400         * FtpWebRequest.cs: 
401         * Cookie.cs: 
402         * ServicePoint.cs: 
403         * WebClient.cs: 
404         * Authorization.cs: 
405         * FileWebRequest.cs: 
406         * HttpWebRequest.cs: 
407         * WebResponse.cs: 
408         * ServicePointManager.cs: 
409         * HttpWebResponse.cs: Throw NotImplementedException indirectly, to
410         reduce noise in Moma reports.
411
412 2007-06-20  Atsushi Enomoto  <atsushi@ximian.com>
413
414         * ServicePointManager.cs : (bootstrap) build fix.
415
416 2007-06-19  Dick Porter  <dick@ximian.com>
417
418         * AuthenticationManager.cs: 
419         * IWebProxyScript.cs: 
420         * Authorization.cs: 
421         * Cookie.cs: 
422         * CookieException.cs: 
423         * CredentialCache.cs: 
424         * FileWebRequest.cs: 
425         * WebRequest.cs: 
426         * FileWebResponse.cs: 
427         * WebResponse.cs: 
428         * FtpWebRequest.cs: 
429         * HttpWebRequest.cs: 
430         * DecompressionMethods.cs: 
431         * HttpWebResponse.cs: 
432         * ProtocolViolationException.cs: 
433         * ServicePoint.cs: 
434         * ServicePointManager.cs: 
435         * WebClient.cs: 
436         * WebException.cs: 
437         * WebHeaderCollection.cs: 
438         * WebProxy.cs: 
439         * WebExceptionStatus.cs: 2.0 profile updates
440
441 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
442
443         * WebConnectionStream.cs: On read timeout, throw WebException with
444         status Timeout instead of IOException.
445
446 2007-05-16  Adar Wesley <adarw@mainsoft.com>
447
448         * CookieCollection.cs: added missing method strongly typed CopyTo.
449
450         * CredentialCache.cs: added missing methods Add, Remove, GetCredential
451
452         * HttpWebRequest.jvm.cs: added missing ClientCertificates getter.
453
454         * ServicePoint.cs: added missing method CloseConnectionGroup.
455
456         * WebClient.cs: added missing methods OnDownloadProgressChanged,
457         OnUploadProgressChanged, GetWebRequest, GetWebResponse
458
459         * WebHeaderCollection.cs: added missing methods IsRestricted, Add,
460         Remove, Set.
461
462         * WebProxy.cs: added missing method GetObjectData.
463
464 2007-05-15  Marek Habersack  <mhabersack@novell.com>
465
466         * HttpWebRequest.cs: fold all methods into GET for
467         redirect/moves. Fixes bug #81624
468
469 2007-05-07  Miguel de Icaza  <miguel@novell.com>
470
471         Missing second part of the patch.
472         
473         * WebHeaderCollection.cs: To be compatible with older versions of
474         Mono that might have serialized this in a different format, catch
475         the potential exception, and try the old name.
476
477         This should become a practice whenever we fix serialization in the
478         future. 
479
480         This is for #81467
481
482 2007-04-23  Marek Habersack  <mhabersack@novell.com>
483
484         * EndPointListener.cs: relax prefix matching to succeed in cases
485         when the prefix ends with / and the request path does not. Fixes
486         bug #80091.
487
488         * CookieCollection.cs: added a SortByPath method to sort the
489         collection on demand.
490
491         * Cookie.cs: do not return "/" for Path if it wasn't set
492         explicitly.
493
494         * CookieContainer.cs: set cookie path only if its version is
495         "Netscape" and is null or empty. Fixes #81420.
496         Sort the collection by the path relevance before returning from
497         the GetCookies method. Fixes bug #81421.
498
499 2007-04-17  Joel Reed  <joelwreed@gmail.com>
500
501         * WebHeaderCollection.cs: www-authenticate should be multivalue.
502         This fixes a bug related to RFC 2608 which says in section
503         "15.2 Offering a Choice of Authentication Schemes"
504
505         An HTTP/1.1 server may return multiple challenges with a 401
506  (Authenticate) response, and each challenge may use a different
507         scheme.  The order of the challenges returned to the user agent is in
508         the order that the server would prefer they be chosen. The server
509         should order its challenges with the "most secure" authentication
510         scheme first. A user agent should choose as the challenge to be made
511         to the user the first one that the user agent understands.
512
513         Before this change, mono was choosing whatever was sent last,
514         which was the most insecure authentication option.
515         
516 2007-04-10  Marek Habersack  <mhabersack@novell.com>
517
518         * HttpListenerRequest.cs: do not include the query start marker
519         ('?') in the first variable name stored in the QueryString
520         collection. There is no HTTP header 'Accept-Types' in the
521         standard, there's only the 'Accept' header that specifies the
522         accepted MIME types. Fixes bug #81317
523
524 2007-03-25 Alan McGovern <alan.mcgovern@gmail.com>
525
526         * IPAddress.cs : Further optimisation for the Swap*** methods.
527
528 2007-03-24 Alan McGovern <alan.mcgovern@gmail.com>
529
530         * IPAddress.cs : Optimised the SwapInt and SwapLong methods.
531
532 2007-03-09  Miguel de Icaza  <miguel@novell.com>
533
534         * FtpDataStream.cs: Close must be called on the stream before we
535         attempt to read a status code from the remote server.
536
537         Fixes FTP transfers to complete. 
538
539 2007-03-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
540
541         * HttpWebRequest.cs: properly handle OPTIONS, which may or may not
542         have a request body. Fixes bug #80686.
543
544 2007-03-02  Marek Habersack  <mhabersack@novell.com>
545
546         * WebClient.cs: Overwrite existing files on download, as
547         documented and as tested on MS.NET. Fixes Bug#81005
548
549 2007-02-24  Gert Driesen  <drieseng@users.sourceforge.net>
550
551         * HttpWebRequest.cs: Allow Proxy to be set to null on 2.0 profile.
552
553 2007-02-18  Geoff Norton  <gnorton@customerdna.com>
554
555         * AuthenticationManager.cs: Register the modules in the 2.0 profile
556         when we create the ArrayList.
557
558 2007-02-01  Gert Driesen  <drieseng@users.sourceforge.net>
559
560         * WebProxy.cs: In IsBypassed, move address check back to satify unit
561         tests.
562
563 2007-01-30  Ilya Kharmatsky <ilyak -at- mainsoft.com>
564
565         * Dns.cs : implemented proper exception handling under TARGET_JVM
566         when trying to resolve not existing host.
567
568 2007-01-28  Gert Driesen  <drieseng@users.sourceforge.net>
569
570         * IPAddress.cs: Provide more meaningful exception message on 2.0
571         profile.
572
573 2007-01-28  Gert Driesen  <drieseng@users.sourceforge.net>
574
575         * FileWebRequest.cs: Fixed PreAuthenticate and Proxy properties to
576         no longer throw NotSupportedException. No longer store ContentLength
577         in headers. Do not allow null or zero-length method. Allow timeout
578         to be set to -1 (infine). Only disallow GET, HEAD and CONNECT requests.
579         Removed workarounds for bug #24943. In (Begin)GetRequest overwrite
580         file if it already exists. Binary serialization compatibility fixes.
581         * FileWebResponse.cs: Return application/octet-stream as ContentType.
582
583 2007-01-28  Gert Driesen  <drieseng@users.sourceforge.net>
584
585         * WebHeaderCollection.cs: Fixed binary serialization compatibility 
586         with MS.
587
588 2007-01-28  Gert Driesen  <drieseng@users.sourceforge.net>
589
590         * WebProxy.cs: Lazy init bypassList. Fixes for binary serialization
591         compatibility. Added stub for UseDefaultCredentials (2.0). On 2.0
592         profile, throw ArgumentNullException in IsBypassed if host is null.
593
594 2007-01-22  Miguel de Icaza  <miguel@novell.com>
595
596         * HttpWebRequest.cs: Remove unused variable.
597
598         * FtpWebRequest.cs: Remove unused variable.
599
600         * WebHeaderCollection.cs: Remove a handful of NotImplementedException's
601
602 2007-01-11  Miguel de Icaza  <miguel@novell.com>
603
604         * HttpListenerRequest.cs (SetRequestLine): Add validation for the
605         verbs. 
606
607         Allow any verbs to go through, not only
608         the white list of verbs.
609
610         Fixes: 80504
611
612 2007-01-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
613
614         * RequestStream.cs: initialize the stream in both ctors. Fixes a couple
615         of unit tests.
616
617 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
618
619         * HttpWebRequest.jvm.cs: Fixed line endings.
620         * HttpWebResponse.jvm.cs: Same.
621         * WebException.cs: Same.
622         * FtpWebRequest.cs: Same.
623         * VMWHttpProvider.jvm.cs: Same.
624
625 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
626
627         * DnsPermissionAttribute.cs: Fixed line endings.
628         * HttpVersion.cs: Same.
629         * FtpWebResponse.cs: Same.
630         * HttpContinueDelegate.cs: Same.
631         * FtpAsyncResult.cs: Same.
632         * EndpointPermission.cs: Same.
633         * IPv6Address.cs: Same.
634         * FtpDataStream.cs: Same.
635         * SocketPermission.cs: Same.
636         * FileWebRequest.cs: Same.
637         * FileWebResponse.cs: Same.
638         * DnsPermission.cs: Same.
639         * ProtocolViolationException.cs: Same.
640         * MonoHttpDate.cs: Same.
641         * SocketPermissionAttribute.cs: Same.
642         * CookieException.cs: Same.
643         * WebResponse.cs: Same.
644         * DefaultCertificatePolicy.cs: Same.
645
646 2006-12-28  Gert Driesen  <drieseng@users.sourceforge.net>
647
648         * IPAddress.cs: On 1.1, 4-byte addresses are not supported in the 
649         ctor. Added null checks for the address passed in the ctors.
650
651 2006-12-28  Miguel de Icaza  <miguel@novell.com>
652
653         * IPAddress.cs: The condition in 1.1 was broken, it only allowed
654         16-byte addresses, and never 4-byte addresses (only 2.0 had
655         them).  
656
657         Keep a single code path.
658
659         Also, remove all the NET_1_1 defines, we realistically only
660         distinguish between 1.1 and 2.0, we wont likely support 1.0, 1.1
661         and 2.0, so remove the 1.0 vs 1.1 conditionals.
662
663         Fixes 76792
664         
665 〓2006-12-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
666
667         * WebConnectionStream.cs: fix error in my last patch. Thanks to Felipe
668         Almeida.
669
670 2006-12-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
671
672         * WebConnection.cs:
673         * HttpWebRequest.cs:
674         * WebConnectionStream.cs: detect errors writing headers earlier and
675         avoid race that showed up with SSL. Fixes bug #80234.
676
677 2006-12-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
678
679         * EndPointListener.cs:
680         * ListenerPrefix.cs:
681         * ResponseStream.cs:
682         * ChunkedInputStream.cs:
683         * HttpConnection.cs:
684         * RequestStream.cs: add initial support for HTTPS.
685
686 2006-12-18  Atsushi Enomoto  <atsushi@ximian.com>
687
688         * FtpStatus.cs : The build gets broken when only-2.0 classes/members
689           are not excluded in 1.x build.
690
691 2006-12-18  David Elkind  <davide@mainsoft.com>
692
693         * FtpAsyncResult.cs : FTP request is now working and covers about 100% of .NET API
694         * FtpDataStream.cs: FTP request is now working and covers about 100% of .NET API
695         * FtpWebRequest.cs: FTP request is now working and covers about 100% of .NET API
696         * FtpWebResponse.cs: FTP request is now working and covers about 100% of .NET API
697         * FtpStatus.cs: added composite status (includes status code and status description)
698
699 2006-12-04  Konstantin Triger  <kostat@mainsoft.com>
700
701         * WebRequest.cs, WebResponse.cs: TARGET_JVM limitation workaround.
702
703 2006-12-04  Konstantin Triger  <kostat@mainsoft.com>
704
705         * ServicePointManager.cs: correct assignment typo.
706         * ServicePoint.cs: Remove unneeded locks for getters, add internal setter.
707
708 2006-11-27  Miguel de Icaza  <miguel@novell.com>
709
710         * WebRequest.cs: Instead of throwing NotImplemented exceptions,
711         call GetMustImplement, that way we do not need the whitelist, and
712         we save a handful of opcodes.
713
714 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
715
716         * HttpWebRequest.cs: add 2 more methods that are not supposed to have
717         a body. Fixes bug #80001.
718
719 2006-11-15  Andrew Skiba  <andrews@mainsoft.com>
720
721         * WebHeaderCollection.cs: add stubs for new 2.0 properties.
722
723 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
724
725         * HttpWebResponse.cs: cookies are actually added to the request
726         container if any. Fixes bug #79821.
727
728 2006-11-02  Michael Hutchinson  <m.j.hutchinson@gmail.com>
729
730         * WebRequest.cs: more closely follow MS behaviour: use system settings 
731           unless told otherwise, and respect app.config.
732
733 2006-11-01  Michael Hutchinson  <m.j.hutchinson@gmail.com>
734
735         * GlobalProxySelection.cs: Obsolete GlobalProxySelection under 2.0 
736           profile, and move code to new property WebRequest.DefaultWebProxy.
737         * WebRequest.cs: Implement new 2.0 property DefaultWebProxy.
738           Add support for config option UseSystemDefault using simplistic
739           implementation of new 2.0 method GetSystemWebProxy ().
740
741 2006-10-30  Atsushi Enomoto  <atsushi@ximian.com>
742
743         * FtpWebRequest.cs : more build fixes.
744
745 2006-10-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
746
747         * EndPointListener.cs: update comment and avoid exception when the
748         program is exiting.
749
750 2006-10-30  Miguel de Icaza  <miguel@novell.com>
751
752         * WebRequestMethods.cs: Another typo fix.
753
754         * ServicePointManager.cs: Set the default properly.
755
756         * SecurityProtocolType.cs: Remove non-existant defines. 
757
758 2006-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
759
760         * HttpWebRequest.cs: internally allow buffer if it's not a known
761         GET-only method instead of enabling that only for POST/PUT. Fixes bug
762         #79595.
763
764 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
765
766         * WebConnection.cs: TARGET_JVM
767
768 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
769
770         * WebException.cs: patch by Andrew Skiba that fixes serialization
771         compatibility with .NET and the default value for status.
772
773 2006-09-28  Andrew Skiba <andrews@mainsoft.com>
774
775         * Dns.cs: TARGET_JVM
776
777 2006-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
778
779         * CookieContainer.cs: send the cookies from the collection we got for
780         the given URI, not the whole collection.
781         * HttpWebResponse.cs: only add the cookies to this instance, not to the
782         cookie container set in the request.
783
784 2006-09-11  Sebastien Pouliot  <sebastien@ximian.com>
785
786         * WebConnection.cs: Patch to remove the hack that was required for 
787         using the older versions of the SSL/TLS classes. This hack is no more
788         required :-). Patch by Gonzalo Paniagua Javier.
789
790 2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
791
792         * HttpConnection.cs: when the content length is available, keep it
793         updated after synchronous read. Renamed 'available' to 'remaining_body'.
794         * RequestStream.cs: when creating the stream, pass the remaining length
795         starting from the offset in the buffer.
796
797 2006-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
798
799         * RequestStream.cs: make sure we return 0 when no more bytes left.
800         Paticularly, when we have a content length and the whole response is
801         buffered.
802
803 2006-08-20  Miguel de Icaza  <miguel@novell.com>
804
805         * RequestStream.cs (Read): A bug fix for #79112 and what I
806         consider to be an important change.
807
808         The bug fix is that we update the "available" variable as soon as
809         we consume data from Read, this means that a second call into Read
810         wont block.   Available was only being updated on a secondary code
811         path, now we alwaysupdate it after using FillFromBuffer.
812
813         The second component is what I believe the right behavior should
814         be.  There was a check for "if count > available" that set count
815         to available in that case.   The idea was to limit the data read
816         from the buffer that belonged to this particular request, to allow
817         pipelining. 
818
819         But this test was done after FillFromBuffer, which assumed that
820         all the data held in the buffer (the one used by FillFromBuffer)
821         must belong to the this request, and only future data did not.
822
823         I think my change is correct, but it assumes that the initialized
824         RequestStream will be used for other pipelined HTTP requests,
825         which is not something am 100% sure of, so Gonzalo needs to check
826         this. 
827
828 2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
829
830         * Cookie.cs: avoid nullref in GetHashCode and Equals.
831
832 2006-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
833
834         * CookieCollection.cs:
835         * CookieContainer.cs: remove expired cookies.
836
837 2006-07-07  Atsushi Enomoto  <atsushi@ximian.com>
838
839         * Dns.cs : (GetHostEntry) when passed IP addresses, it does not issue
840           query to DNS. Patch by Petri Latvala.
841
842 2006-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
843
844         * CookieContainer.cs: don't send a secure cookie over an insecure
845         channel.
846
847 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
848
849         * WebProxy.cs: (IsBypassed) 'loopback', 'localhost' and any address
850         that starts with 127 are special.
851
852 2006-05-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
853
854         * HttpListener.cs: Fixes race condition in BeginGetContext. Patch by
855         Pawel Sakowski that fixes bug #78365.
856
857 2006-05-09  Atsushi Enomoto  <atsushi@ximian.com>
858
859         * ServicePointManager.cs : oops, CONFIGURATION_DEP.
860
861 2006-05-09  Atsushi Enomoto  <atsushi@ximian.com>
862
863         * GlobalProxySelection.cs : if corresponding config section is
864           DefaultProxySection then use it.
865
866 2006-05-09  Atsushi Enomoto  <atsushi@ximian.com>
867
868         * WebRequest.cs : if corresponding config section is
869           WebRequestModulesSection then use it.
870
871 2006-05-09  Atsushi Enomoto  <atsushi@ximian.com>
872
873         * ServicePointManager.cs : if corresponding config section is
874           ConnectionManagementSection then use it.
875
876 2006-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
877
878         * ResponseStream.cs:
879         * HttpListenerResponse.cs: allow 0 length POST. Patch by Horst Reiterer.
880         Closes bug #78316.
881
882 2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
883
884         * CredentialCache.cs: added DefaultNetworkCredentials.
885
886 2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
887
888         * NetworkCredential.cs: implement ICredentialsByHost interface.
889
890 2006-04-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
891
892         * WebConnection.cs: reset the challenge and the status code when
893         creating the tunnel and sending the proxy auth. headers. Improve error
894         message when there's an error creating the tunnel.
895         * HttpWebRequest.cs: don't trigger an early throw for a POST that gets
896         a 401 or 407 response.
897
898 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
899
900         * WebConnectionData.cs:
901         * WebConnection.cs:
902         * HttpWebRequest.cs: when tunneling an ssl conneciton through a proxy,
903         we were not handling a proxy authentication request. Fixes bug #78150
904         take 2.
905
906 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
907
908         * WebProxy.cs: a .ctor was not forwarding the 'credentials' argument.
909         This fixes bug #78150. Also fix the bypass check for local requests.
910
911 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
912
913         * WebProxy.cs: removed bogus ^M.
914
915 2006-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
916
917         * HttpWebResponse.cs: don't remove the Set-Cookie headers. Fixes bug
918         #78028.
919
920 2006-04-04  Atsushi Enomoto  <atsushi@ximian.com>
921
922         * WebClient.cs : added a bunch of async method support.
923
924 2006-04-03  Chris Toshok  <toshok@ximian.com>
925
926         * HttpWebResponse.cs (ContentEncoding): return "" if the header
927         isn't present.
928
929 2006-03-30  Atsushi Enomoto  <atsushi@ximian.com>
930
931         * DownloadStringCompletedEventHandler.cs : missing delegate.
932
933 2006-03-30  Atsushi Enomoto  <atsushi@ximian.com>
934
935         * Dns.cs : minor argument renaming.
936
937 2006-03-28  Atsushi Enomoto  <atsushi@ximian.com>
938
939         * DownloadDataCompletedEventArgs.cs
940           DownloadDataCompletedEventHandler.cs
941           DownloadProgressChangedEventArgs.cs
942           DownloadProgressChangedEventHandler.cs
943           DownloadStringCompletedEventArgs.cs
944           OpenReadCompletedEventArgs.cs
945           OpenReadCompletedEventHandler.cs
946           OpenWriteCompletedEventArgs.cs
947           OpenWriteCompletedEventHandler.cs
948           UploadDataCompletedEventArgs.cs
949           UploadDataCompletedEventHandler.cs
950           UploadFileCompletedEventArgs.cs
951           UploadFileCompletedEventHandler.cs
952           UploadProgressChangedEventArgs.cs
953           UploadProgressChangedEventHandler.cs
954           UploadStringCompletedEventArgs.cs
955           UploadStringCompletedEventHandler.cs
956           UploadValuesCompletedEventArgs.cs
957           UploadValuesCompletedEventHandler.cs : added 2.0 types.
958
959 2006-03-28  Atsushi Enomoto  <atsushi@ximian.com>
960
961         * Dns.cs : filled missing NET_2_0 members.
962
963 2006-03-28  Atsushi Enomoto  <atsushi@ximian.com>
964
965         * IPAddress.cs : ugh, I was testing with run-test-ondotnet, not
966           run-test. Those IPv6 properties needed to be reimplemented.
967
968 2006-03-27  Atsushi Enomoto  <atsushi@ximian.com>
969
970         * IPAddress.cs : added NET_2_0 TryParse() and IPv6 related properties.
971
972 2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
973
974         * WebConnectionStream.cs: avoid Begin/EndWrite when the body length is
975         zero.
976
977 2006-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
978
979         * HttpWebRequest.cs: send the request if ContentLength is set for
980         POST/PUT, the request stream has that exact amount of bytes in it and
981         we're trying to get the response stream.
982
983         This way, closing the request stream is not needed in order to actually
984         send the request. Fixes bug #77753.
985
986         * WebConnectionStream.cs: throw if the number of bytes written is
987         greater than the specified request content length.
988
989 2006-03-11  Miguel de Icaza  <miguel@novell.com>
990
991         * WebClient.cs: Only expose the right methods to avoid warnings. 
992
993         * FtpDataStream.cs (Dispose): Fix signature.
994
995         * FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
996         like we are missing features here).
997
998         * IPAddress.cs: Move m_HashCode property to the end, and set
999         pragmas to disable warnings.
1000
1001 2006-02-16  Dick Porter  <dick@ximian.com>
1002
1003         * IPEndPoint.cs: The SocketAddress AddressFamily takes up the
1004         first two bytes, not just one.  Check the size of the
1005         SocketAddress buffer for IPv6 as well.
1006
1007         * Dns.cs: Cope when GetHostByName_internal or
1008         GetHostByAddr_internal returns fewer items in the array than it
1009         intended to (maybe due to conversion errors.)
1010
1011 2006-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1012
1013         * FtpWebResponse.cs: Add UpdateStatus method, to update both
1014         statusCode and statusDescription at the same time. 
1015
1016 2006-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1017
1018         * FtpWebRequest.cs: Remove WebExceptionStatus argument
1019         from CreateExceptionFromResponse, since exceptions gotten
1020         from server response always have a WebExceptionStatus.ProtocolError
1021         value.
1022         
1023 2006-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1024
1025         * FtpWebRequest.cs: Add renaming support when using 
1026         WebRequestMethods.Ftp.Rename method.
1027         
1028 2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1029
1030         * ChunkedInputStream.cs:
1031         * ChunkStream.cs: handle partial trailers and zero reads. Patch by Pawel
1032         Sakowski.
1033
1034 2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1035
1036         * HttpWebRequest.cs: don't send the expect-100 if if there's no content.
1037
1038         * HttpListenerRequest.cs:
1039         * HttpConnection.cs:
1040         * RequestStream.cs: use the content length header to avoid reading past
1041         the end of the stream.
1042
1043         Patch by Horst Reiterer.
1044
1045 2006-02-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1046
1047         * FtpWebRequest.cs: Add supportedCommands array with the sorted
1048         methods, to search using Array.BinarySearch. Remove CheckMethod.
1049
1050 2006-02-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1051
1052         * FtpWebRequest.cs: Fixed some typos and small issues.
1053         
1054 2006-02-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1055
1056         * HttpWebRequest.cs: dummy implementation of UnsafeAuthenticationBlah
1057         property.
1058
1059 2006-02-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1060
1061         * FtpRequestCreator.cs: 
1062         * FtpAsyncResult.cs:
1063         * FtpDataStream.cs:
1064         * FtpWebRequest.cs:
1065         * FtpWebResponse.cs: Initial implementation of FtpWebRequest (2.0)
1066         
1067 2006-02-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1068
1069         * FtpStatusCode.cs: Fix a typo.
1070         
1071 2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1072
1073         * WebClient.cs: (2.0) UploadString() returns string, not void.
1074
1075 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1076
1077         * HttpWebResponse.cs: ignore non-integer values for max-age and version.
1078         Fixes bug #77199. Thanks to Cyrille Colin.
1079
1080 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1081
1082         * HttpWebResponse.cs: cope with malformed cookies with '=' as value.
1083         Patch by Cyrille Colin. Fixes bug #77179.
1084
1085 2005-12-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1086
1087         * FtpStatusCode.cs: New 2.0 enum.
1088
1089 2005-12-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1090
1091         * CookieContainer.cs: fix matching of subdomains. Patch by Cyrille
1092         Colin.
1093
1094 2005-12-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1095
1096         * HttpWebResponse.cs: don't loop forever when no name or value between
1097         semicolons. Fixes bug #76943.
1098
1099 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1100
1101         * HttpWebResponse.cs: don't fail if the cookie ends with a 'name'
1102         without a value. Fixes bug #76922.
1103
1104 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1105
1106         * EndPointListener.cs:
1107         * HttpListenerRequest.cs: don't require the Host header for 1.0. Just
1108         map that to the '*' or '+' host.
1109
1110 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1111
1112         * IPAddress.cs: the byte[] ctor supports length 4 in .NET 2.0.
1113         Fixes bug #76792.
1114
1115 2005-11-21 Senganal T   <tsenganal@novell.com>
1116
1117         * Dns.cs : corrected a mistake in GetHostEntry ()
1118
1119 2005-11-21 Senganal T   <tsenganal@novell.com>
1120
1121         * Dns.cs : added GetHostEntry() method for 2.0 api conformance
1122
1123 2005-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1124
1125         * HttpRequestHeader.cs: add missing values.
1126
1127 2005-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1128
1129         * HttpListenerPrefixCollection.cs:
1130         * HttpWebResponse.cs:
1131         * Dns.cs:
1132         * HttpListenerRequest.cs:
1133         * HttpWebRequest.cs:
1134         * HttpListenerResponse.cs: a few signature fixes for 2.0.
1135
1136 2005-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1137
1138         * HttpListenerPrefixCollection.cs:
1139         * EndPointListener.cs:
1140         * HttpStreamAsyncResult.cs:
1141         * HttpListenerContext.cs:
1142         * HttpListenerBasicIdentity.cs:
1143         * AuthenticationSchemeSelector.cs:
1144         * HttpListener.cs:
1145         * WebHeaderCollection.cs:
1146         * ListenerPrefix.cs:
1147         * HttpListenerException.cs:
1148         * HttpResponseHeader.cs:
1149         * EndPointManager.cs:
1150         * HttpListenerRequest.cs:
1151         * HttpRequestHeader.cs:
1152         * BindIPEndPoint.cs:
1153         * ResponseStream.cs:
1154         * ChunkedInputStream.cs:
1155         * HttpStatusCode.cs:
1156         * ListenerAsyncResult.cs:
1157         * ChunkStream.cs:
1158         * HttpConnection.cs:
1159         * HttpUtility.cs:
1160         * HttpListenerResponse.cs:
1161         * RequestStream.cs: initial implementation of HttpListener. There are
1162         a few TODOs left (cookies, HTTPS) but almost everything else is in.
1163
1164 2005-11-15  Sebastien Pouliot  <sebastien@ximian.com>
1165
1166         * IPv6Address.cs: Added on overload to ToString to get a the full 
1167         length address returned (as required by System.Uri).
1168
1169 2005-11-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1170
1171         * WebRequestMethods.cs: New 2.0 class.
1172         
1173 2005-11-05  Atsushi Enomoto  <atsushi@ximian.com>
1174
1175         * WebClient: use POST for DownloadData(). Fixed bug #76631.
1176
1177 2005-10-26  Atsushi Enomoto  <atsushi@ximian.com>
1178
1179         * AuthenticationSchemes.cs : Fixed enum values and added [Flags].
1180
1181 2005-10-19  Atsushi Enomoto  <atsushi@ximian.com>
1182
1183         * WebClient.cs : added net_2_0 DownloadString() and DownloadData()
1184           with HTTP method as well.
1185
1186 2005-10-19  Atsushi Enomoto  <atsushi@ximian.com>
1187
1188         * WebClient.cs : added UploadString() and Encoding (net_2_0). Added
1189           some new overloaded stuff that takes Uri instead of string address.
1190
1191 2005-10-17  Sebastien Pouliot  <sebastien@ximian.com> 
1192
1193         * ICredentialPolicy.cs: New. Interface for 2.0.
1194
1195 2005-10-05  Atsushi Enomoto  <atsushi@ximian.com>
1196
1197         * AuthenticationSchemes.cs : new 2.0 enum.
1198
1199 2005-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1200
1201         * GlobalProxySelection.cs: remove double lock.
1202         * HttpWebRequest.cs: remove double lock in GetServicePoint() and use
1203         a private object when locking.
1204
1205 2005-07-15  Miguel de Icaza  <miguel@novell.com>
1206
1207         * DigestClient.cs: Fix bug #75556, the qop argument must be
1208         quoted, per http://www.faqs.org/rfcs/rfc2617.html section
1209         `quo-options'.
1210
1211 2005-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1212
1213         * WebConnectionStream.cs: initiate writing the body before trying to
1214         read. This fixes the performance problems observed in web services.
1215         Closes bug #75455.
1216
1217 2005-06-27  Lluis Sanchez Gual <lluis@novell.com>
1218
1219         * IPAddress.cs: Changed field names for the sake of serialization
1220         interoperability with MS.NET.
1221         
1222 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1223
1224         * WebConnection.cs: if cnc.EndRead throws, mark the asyncresult as done.
1225         * WebConnectionStream.cs: if we're done with the body of a chunk, don't
1226         require the next chunk header to be there, as some servers might close
1227         the connection (while also sending 'Connection: close').
1228
1229 2005-06-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1230
1231         * HttpWebRequest.cs: MS implementation follows redirects for POST. Seems
1232         to me that this is against 10.3.3 in RFC 2616, but may be the user
1233         'authorization' to do this is implicit in AllowAutoRedirect...
1234
1235 2005-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1236
1237         * WebConnection.cs: SslClientStream.BeginRead might not be asynchronous
1238         if there's no record available to read. This is a workaround that makes
1239         the call to BeginRead itself asynchronous. Fixes bug #75342.
1240
1241 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1242
1243         * WebConnection.cs:
1244         * HttpWebRequest.cs:
1245         * WebConnectionStream.cs: initiate the polling for input data after
1246         sending the header so that we detect any response that the server sends
1247         back even if we're still trying to write the request for a POST/PUT.
1248         If we get the response (or an error) before any one calls GetResponse(),
1249         keep it around instead of ignoring it.
1250
1251 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1252
1253         * HttpWebRequest.cs: send the right header/user/password in
1254         PreAuthenticate in presence of a proxy.
1255
1256 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1257
1258         * IPv6Address.cs: fix IsLoopback. Closes bug #75128.
1259
1260 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1261
1262         * IPv6Address.cs: don't do extra check on ipv4 if this is a ipv6
1263         address. Fixes bug #75125.
1264
1265 2005-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1266
1267         * ServicePointManager.cs: when going through a proxy, use 2 different
1268         service points depending on the scheme. Fixes bug #75135.
1269
1270 2005-05-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1271
1272         * Dns.cs: don't parse the address when it comes from an IPAddress.
1273
1274 2005-05-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1275
1276         * WebConnection.cs: prevent 2 nullrefs when the aborting during
1277         Connect() and reset the status to Success before starting a new
1278         request.
1279
1280 2005-05-19  Sebastien Pouliot  <sebastien@ximian.com>
1281
1282         * WebRequest.cs: Throw NotImplementedException (not NotSupported
1283         Exception) for stuff that should have been abstract. No exception
1284         is thrown by the serialization constructor.
1285
1286 2005-05-04 James Willcox  <james@ximian.com>
1287
1288         * DigestClient.cs: convert to a hex string with "X8" consistently
1289         for nc-value
1290
1291 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1292
1293         * WebConnection.cs: don't rethrow errors in Write, as the error will be
1294         received by GetResponse*. The result is that the threadpool thread doing
1295         this will not end up printing the exception. Fixes bug #74817.
1296
1297 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1298
1299         * ServicePoint.cs: HostEntry needs to be thread safe.
1300
1301 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1302
1303         * WebConnection.cs: removed a 'slightly' important line by mistake.
1304         * WebConnectionStream.cs: if the transfer encoding is chunked, ignore
1305         content-length header if present.
1306
1307 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1308
1309         * WebConnection.cs: no need to use an AutoResetEvent.
1310         * WebConnectionStream.cs: don't start any more reads on the socket
1311         after getting a 0 signalling the end. This fixes Ben's infamous foo.cs
1312         test.
1313
1314 2005-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1315
1316         * BasicClient.cs: firefox/IE just send latin1, stripping the high byte
1317         from unicode >= 256 characters.
1318
1319 2005-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1320
1321         * BasicClient.cs: use latin1 when encoding the username/domain/password.
1322         Fixes bug #74745.
1323
1324 2005-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1325
1326         * WebConnectionStream.cs: if the BeginRead/BeginWrite is completed
1327         synchronously, no need to create the ManualResetEvent to wait on.
1328
1329 2005-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1330
1331         * WebConnectionStream.cs: call SetComplete in EndWrite when we're not
1332         buffering the request body. Fixes bug #74637.
1333
1334         * WebAsyncResult.cs: renamed field.
1335
1336 2005-04-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1337
1338         * WebConnectionStream.cs:
1339         * WebAsyncResult.cs: ensure we only call EndRead once per async. result.
1340         Update total before invoking the callback when present.
1341
1342 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1343
1344         * WebConnection.cs:
1345         * WebConnectionStream.cs: don't start reading until we've sent at least
1346         the headers. This way we ensure that a Write happens before any Read,
1347         which is needed by the SSL code.
1348
1349 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1350
1351         * HttpWebRequest.cs: ensure we read everything before redirecting.
1352
1353 2005-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1354
1355         * WebConnectionStream.cs: provide a default callback when doing async.
1356         read/write and waiting for a timeout so that the callback sets the
1357         event and we don't block forever. Fixes bug #74539 take 3.
1358
1359 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1360
1361         * WebConnection.cs:
1362         * HttpWebRequest.cs: now Abort() works properly. Fixes bug #74177.
1363
1364 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1365
1366         * WebConnection.cs: fix some breakage from my last patch.
1367         * WebConnectionStream.cs: invoke the callback when done even in EndRead.
1368
1369 2005-04-10  Sebastien Pouliot  <sebastien@ximian.com>
1370
1371         * WebConnection.cs: Added support for TrustFailure when throwing a
1372         WebException. Fix bug #74286.
1373
1374 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1375
1376         * HttpWebRequest.cs: 
1377         * WebConnectionStream.cs: implemented support for ReadWriteTimeout.
1378
1379 2005-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1380
1381         * WebConnection.cs: if we're reading chunked data and didn't use the
1382         stream to read, we gotta set the async. result as complete and invoke
1383         the callback. Don't call nstream.EndRead with the wrong IAsyncResult.
1384
1385         * WebConnectionStream.cs: in EndRead, pass the correct IAsyncResult to
1386         cnc.EndRead. Lock on a field instead of 'this'.
1387
1388 2005-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1389
1390         * HttpWebRequest.cs: throw the exception if we got an error, as now
1391         it's catched in the redirection handling code.
1392
1393 2005-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1394
1395         * HttpWebRequest.cs: moved redirection handling to a proper place.
1396
1397 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1398
1399         * WebHeaderCollection.cs: added if-modified-since to the list of
1400         restricted headers.
1401
1402         * ServicePoint.cs: use a field object when locking.
1403
1404 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1405
1406         * WebConnectionStream.cs: ForceCompletion actually calls NextRead. No
1407         need to wait for a Close/ReadAll when we have no content.
1408
1409 2005-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1410
1411         * NtlmClient.cs: fix typo in assembly name.
1412
1413 2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1414
1415         * CookieContainer.cs: adding to a CookieCollection might not increment
1416         the number of items if the cookie is replaced. Now Count works properly.
1417         Fixed an array index exception (typo).
1418
1419         * CookieCollection.cs: also compare the version.
1420
1421         * HttpWebResponse.cs: when we have cookies, add them to the request
1422         container.
1423
1424         * HttpWebRequest.cs: changed last parameter of HttpWebResponse ctor.
1425
1426 2005-03-30  Miguel de Icaza  <miguel@novell.com>
1427
1428         * Cookie.cs: Compare using the InvariantCulture, to match the
1429         behavior of CookieContainer that already did this.
1430
1431 2005-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1432
1433         * WebConnection.cs: we don't need to trigger the next queued request
1434         until the response is closed.
1435
1436 2005-03-29  Miguel de Icaza  <miguel@novell.com>
1437
1438         * HttpWebResponse.cs: Handle quotations in the cookies values, per
1439         the spec http://www.faqs.org/rfcs/rfc2109.html, it is allowed to
1440         have quotations.
1441
1442 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1443
1444         * BasicClient.cs:
1445         * DigestClient.cs: check that GetCredential() does not return null.
1446
1447 2005-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1448
1449         * BasicClient.cs: ensure credentials are not null.
1450
1451 2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1452
1453         * HttpWebResponse.cs: moved cookie parsing into its own class.
1454         * WebHeaderCollection.cs: remove (probably bogus) GetMultipleValues
1455         call.
1456         * HttpWebRequest.cs: don't let exception raised in the ctor of
1457         HttpWebResponse vanish.
1458
1459         Fixes bug #73275.
1460
1461 2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1462
1463         * WebHeaderCollection.cs: handle commas inside quotes when splitting
1464         a multi-value header. Fixes bug #73151.
1465
1466 2005-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1467
1468         * DigestClient.cs: fix for digest auth. and URIs containing query. Patch
1469         by James Wilcox. Fixes bug #72571.
1470
1471 2005-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1472
1473         * HttpWebResponse.cs:
1474         * WebConnection.cs:
1475         * HttpWebRequest.cs:
1476         * WebConnectionStream.cs: don't read the entire response unless the
1477         user requests it. Fixes bug #72443.
1478
1479 2005-02-08  Zoltan Varga  <vargaz@freemail.hu>
1480
1481         * IPv6Address.cs: Fix endianess problems.
1482
1483         * IPAddress.cs: Fix misleading comments.
1484
1485 2005-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1486
1487         * HttpWebRequest.cs: send the headers when we're supposed to write
1488         a POST/PUT but call GetResponse before GetRequestStream.
1489
1490         * WebConnectionStream.cs: new RequestWritten property.
1491
1492 2005-01-20  Jonathan Pryor  <jonpryor@vt.edu>
1493
1494         * EndpointPermission.cs: Fix IsSubsetof(hostname) so that the regression 
1495           tests work.  In particular, IsSubsetOf ("12.13.*.*", "12.13.14.*") failed
1496           because 14 wasn't a subset of * (which it is).  Fix: if part1 is we 
1497           continue to the next portion.
1498
1499 2005-01-20  Jonathan Pryor  <jonpryor@vt.edu>
1500
1501         * IPAddress.cs (ParseIPV4): Fix so that the regression tests work.  In
1502           particular, " foo" and ".1.1.6" weren't being caught (" foo" because it
1503           started with a space, and ".1.1.6" because the split string accepted a
1504           0-length portion, which would make 1...6 valid, but isn't valid based on
1505           similar test cases).
1506
1507 2005-01-20  Jonathan Pryor  <jonpryor@vt.edu>
1508
1509         * WebHeaderCollection.cs: Fix GetValues(string) to split the values on
1510           commas if the header is a Multi-Value header.  This matches
1511           MonoTests.System.Net.WebHeaderCollectionTest.
1512
1513 2005-01-19  Sebastien Pouliot  <sebastien@ximian.com>
1514
1515         * WebPermissionAttribute.cs: Fixed NET_1_1 behaviour.
1516
1517 2004-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1518
1519         * WebConnectionStream.cs: remove unneeded check. Write detects and
1520         triggers the exception now.
1521
1522 2004-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1523
1524         * AuthenticationManager.cs: don't lock on a public Type.
1525         * HttpWebRequest.cs: read the error response for auth. errors.
1526
1527 2004-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1528
1529         * HttpWebRequest.cs: set webResponse back to null when redirecting.
1530         Fix the previous patch so that it reads the whole response even if
1531         auto-redirect is not enabled. Closes bug #70484.
1532
1533 2004-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1534
1535         * HttpWebResponse.cs: added ReadAll method.
1536
1537         * WebConnection.cs: in HandleError, set the response error after
1538         closing the socket. Use an async. delegate to finish reading any prior
1539         WebConnectionStream.
1540
1541         * HttpWebRequest.cs: for error responses that allow content, read the
1542         stream immediately. Fixes bug #70483.
1543
1544 2004-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1545
1546         * CookieContainer.cs: quote the port number.
1547
1548 2004-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1549
1550         * WebConnection.cs:
1551         * WebConnectionStream.cs: removed TryReconnect. It's no longer needed.
1552
1553 2004-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1554
1555         * WebConnection.cs: set the event in Close so that if the queue is
1556         empty, we won't block forever on next request. The finalizer was
1557         removed because we're not implementing IDisposable pattern here.
1558
1559 2004-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1560
1561         * WebConnection.cs: handle errors on chunked streams. Fixes bug #66858.
1562         * ChunkStream.cs: added error checking all over.
1563
1564         * HttpWebRequest.cs: throw the exception received in SetResponseError
1565         if we already have a response.
1566         (SetRequestData): Don't nest the exception if it's a WebException.
1567
1568 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1569
1570         * WebConnection.cs: remove prevStream and don't set busy to false in
1571         HandleError. prevStream is not needed any more and setting 'busy' so
1572         early might let a request skip the queue.
1573         
1574         * WebConnectionGroup.cs: decrement the indexer when removing a dead
1575         reference from the arraylist.
1576
1577         * WebConnectionStream.cs:
1578         (ReadAll): call NextRead if it has not been called before even when
1579         we have completed the request. Reuse the read buffer when reading a
1580         response of unknown size. Increase the buffer to 8kB.
1581         (BeginRead): increase pendingReads earlier and even when reading from
1582         the internal buffer.
1583         (EndRead): decrease pendingReads later and always.
1584
1585 2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1586
1587         * CookieContainer.cs: style, fixed checks for properties, implemented
1588         the MonoTODOs for the method that take an Uri. GetCookies and
1589         GetCookieHeaders now really return only the cookies that are requested
1590         filtering by the Uri parameter.
1591
1592         * Cookie.cs: style, added default values for Comment, Domain and Port.
1593
1594 2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1595
1596         * CookieCollection.cs: reformatted, fixed Add by adding a new method to
1597         search across the arraylist, as list.IndexOf is not what we want.
1598
1599 2004-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1600
1601         * WebConnection.cs: check for FIN or RST on the socket before reusing.
1602         Fixes bug #69388.
1603
1604 2004-11-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1605
1606         * ChunkStream.cs: simplified condition for WantMore property.
1607
1608         * WebConnection.cs: in Connect(), finish any pending reads we might
1609         have for chunked data. Ignore possible blank lines at the very
1610         beginning of the server response. Honor user set KeepAlive in
1611         HttpWebRequest for HTTP/1.1 connections. Thanks to Eyal Alayuf for
1612         his suggestions and code.
1613
1614 2004-11-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1615
1616         * HttpWebResponse.cs: don't lock up when the cookie received ends with
1617         a semicolon. Patch by Darryl VanDorp. Fixes bug #68956.
1618
1619 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1620
1621         * HttpWebRequest.cs: don't fail if the request has already been sent
1622         when accessing ContentType setter. Fixes bug #68848.
1623
1624 2004-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1625
1626         * ChunkStream.cs:
1627         (WantMore): we're not done until we get a 0 chunk size and the trailer.
1628         The 0 can be expressed as more than one character too (ie, 000000).
1629
1630         * HttpWebRequest.cs: new argument in SetResponseError.
1631         * WebConnection.cs: added argument to HandleError as a hint for
1632         debugging.
1633         (Connect): make the chunked stream be in the expected state when
1634         reusing.
1635
1636         * WebConnectionStream.cs: removed unused method (ResetWriteBuffer).
1637
1638 2004-10-10 David Sheldon <dave-mono@earth.li>
1639
1640         * HttpWebRequest.cs: Use RemoveAndAdd for AddRange. Fixes unittest.
1641
1642 2004-10-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1643
1644         * HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
1645         * WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
1646         SetInternal.
1647
1648 2004-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1649
1650         * HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
1651         tunneling a secure connection.
1652
1653         * ServicePoint.cs: added UseConnect property.
1654
1655         * ServicePointManager.cs: set the UseConnect property when we use a http
1656         proxy for a https connection.
1657
1658         * WebConnection.cs: setup the tunnled connection when using a proxy and
1659         https.
1660
1661 2004-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1662
1663         * HttpWebResponse.cs: remove unused SplitValue method.
1664
1665 2004-09-10  Sebastien Pouliot  <sebastien@ximian.com>
1666
1667         * DnsPermission.cs: Updated to pass new unit tests.
1668         * DnsPermissionAttribute.cs: Cleanup.
1669         * SocketPermission.cs: Updated to pass new unit tests.
1670         * SocketPermissionAttribute.cs: Updated to pass new unit tests.
1671         * WebPermission.cs: Implemented some TODO - not complete yet.
1672         * WebPermissionAttribute.cs: Updated to pass new unit tests.
1673
1674 2004-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1675
1676         * Cookie.cs: don't fail when using default constructor. Fixes bug
1677         #62890.
1678
1679 2004-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1680
1681         * HttpWebResponse.cs: set-cookie and set-cookie2 can be present more
1682         than once and have multiple values. Don't rely on string.split when
1683         parsing cookie values.
1684
1685         * WebHeaderCollection.cs: same thing for set-cookie and set-cookie2.
1686         Fixed GetValues (it was splitting values that contained a comma) and
1687         changed SetInternal to handle multi-value headers.
1688
1689         Fixes bug #62744.
1690
1691 2004-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1692
1693         * WebProxy.cs: fix scheme detection. Patch by Konstantin Triger
1694         (kostat@mainsoft.com).
1695
1696 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1697
1698         * HttpWebRequest.cs: detect changes in scheme or port when redirecting.
1699         Fixes las take on bug 61218.
1700
1701 2004-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1702
1703         * WebConnection.cs: moved loading of the ssl stream Type to its own
1704         method. Don't create a new ssl stream if we're reusing the connection.
1705
1706         * WebConnectionStream.cs: ensure the number of bytes copied in ReadAll
1707         is the expected even if the dta from the server has extra bytes.
1708
1709 2004-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1710
1711         * WebConnection.cs:
1712         * WebConnectionStream.cs: when the status code is 1xx, 204 or 304,
1713         "responses MUST NOT include a message-body". We tried to read the
1714         stream even when getting those codes and considered the 0 length
1715         read as a failure.
1716
1717 2004-07-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1718
1719         * HttpWebRequest.cs: removed bogus Monitor.Exit.
1720         * WebConnection.cs: use Address instead of RequestUri when checking for
1721         the scheme in order to select the stream type. Fixes bug #61218.
1722
1723 2004-06-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1724
1725         * ChunkStream.cs: added ChunkLeft property.
1726         * WebConnection.cs:
1727         (EndRead): when using small byte arrays to read from a chunked stream,
1728         ensure we've read the chunk size and try to fulfill the request
1729         completely. fixes bug 59653.
1730
1731 2004-05-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1732
1733         * WebConnectionStream.cs: fixed CanRead property. Closes bug #59273.
1734
1735 2004-05-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1736
1737         * DigestClient.cs: cache the sessions based on address and
1738         credentials, not only address. Added poor men's expiration to
1739         the session cache. Fixes bug #59202.
1740
1741 2004-05-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1742
1743         * IPAddress.cs:
1744         * IPEndPoint.cs:
1745         * IPv6Address.cs: no more warnings about IPAddress.Address.
1746
1747 2004-05-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1748
1749         * WebException.cs: implemented serialization .ctor and
1750         GetObjectData().
1751
1752 2004-05-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1753
1754         * WebAsyncResult.cs: don't create the WaitHandle if not needed.
1755
1756 2004-05-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1757
1758         * HttpWebRequest.cs: added 3 missing properties for 1.1. They are not
1759         used yet.
1760
1761         * NetConfig.cs: added MaxResponseHeadersLength field.
1762
1763         * ServicePoint.cs:
1764         * ServicePointManager.cs: added missing properties for 1.1. 
1765
1766 2004-05-03  Sebastien Pouliot  <sebastien@ximian.com>
1767
1768         * WebConnection.cs: Use assembly name const to load Mono.Security.
1769
1770 2004-05-03  Lluis Sanchez Gual <lluis@ximian.com>
1771
1772         * NtlmClient.cs: Use assembly name const to load Mono.Security.
1773
1774 2004-04-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1775
1776         * WebConnectionStream.cs: avoid the exception when getting the content
1777         length if possible.
1778
1779 2004-03-29  Lluis Sanchez Gual <lluis@ximian.com>
1780
1781         * HttpWebRequest.cs: Use a lock block instead of Monitor.Enter/Exit, so
1782         the lock is released in case of exception (for example, a 
1783         ThreadAbortException). This also "fixes" bug #52417.
1784         Beware, this requires a runtime update (due to a bug in Monitor.Exit).
1785         * ServicePoint.cs: Changed method from internal to private, since it
1786         is not called from outside the class.
1787
1788 2004-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1789
1790         * HttpWebRequest.cs: added the exception status to the error message.
1791         * WebConnection.cs: add headers using SetInternal instead of Add to
1792         bypass header name validation. Fixes bug #55994.
1793         * WebHeaderCollection.cs: added SetInternal (string header).
1794
1795 2004-03-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1796
1797         * WebConnection.cs:
1798         * WebConnectionGroup.cs: the requests queue is now shared for all the
1799         connections belonging to the same connection group.
1800
1801 2004-02-26  Sebastien Pouliot  <sebastien@ximian.com>
1802
1803         * DefaultCertificatePolicy.cs: New. Certificate validation
1804         policy compatible with the documented one present in Fx. It
1805         allows valid certificates and expired certificates to be used
1806         for SSL connections.
1807         * ServicePointManager.cs: Removed the DummyPolicy. Now creates
1808         a DefaultCertificatePolicy to validate certificates. 
1809
1810 2004-02-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1811
1812         * ServicePoint.cs: SendContinue is always false for HTTP/1.0
1813
1814         * WebConnection.cs: get rid of WaitForContinue() (yes!) and prevent
1815         calling more the ContinueDelegate more than once when we get the
1816         headers in several packets.
1817
1818         * WebConnectionStream.cs: removed call to WaitForContinue.
1819
1820 2004-02-25  Sebastien Pouliot  <sebastien@ximian.com>
1821
1822         * WebConnection.cs: Update previous patch to use HttpsClientStream
1823         (internal in Mono.Security assembly) in place of SslClientStream.
1824         This will reduce reflection and allow to use ICertificatePolicy.
1825
1826 2004-02-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1827
1828         * DigestClient.cs: fix quote handling. Reordered attributes in response.
1829         Fixed typo (QOP->CNonce). Now Digest works with apache2.
1830
1831 2004-02-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1832
1833         * DigestClient.cs: removed Console.
1834         * HttpWebRequest.cs: 401/407 were hanging for GET. Fixed.
1835
1836 2004-02-24  Sebastien Pouliot  <sebastien@ximian.com>
1837
1838         * DigestClient.cs: Fixed issue with Apache server which do not use "
1839         for specifying the digest algorithm (.e.g. algorithm=MD5 not ="MD5").
1840
1841 2004-02-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1842
1843         * HttpWebRequest.cs: arghhh. I used the server response headers instead
1844         of what the client is supposed to send. Thanks to Helge Hess.
1845
1846 2004-02-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1847
1848         * AuthenticationManager.cs: implemented PreAuthenticate().
1849
1850         * HttpWebRequest.cs: once we know the version of the server, use it if
1851         below the requested one. Remove 'Expect', 'Content-Length' and /or 
1852         'Transfer-Encoding' if appropiate due to changes in version. Fixed 
1853         'Host' header for non-standard ports. Support preauthentication. Closes
1854         bug #50530.
1855
1856 2004-02-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1857
1858         * HttpWebRequest.cs: check for missing or wrong URI in Location header
1859         when redirecting.
1860
1861         * WebConnection.cs: if the data read does not contain all the headers,
1862         keep it around and read the rest until we get to the response body.
1863         Allow response code with no description. Fixed bug #54543.
1864
1865 2004-02-18  Sebastien Pouliot  <sebastien@ximian.com>
1866
1867         * SecurityProtocolType.cs: Added missing [Serializable] to enum. Added 
1868         Default and Ssl2 to NET_2_0 profile. Enum is now internal for NET_1_0
1869         profile (as we need it for SslClientStream).
1870         * ServicePoint.cs: Added internal SetCertificates(client,server).
1871         * ServicePointManager.cs: Added CheckCertificateRevocationList and
1872         CheckCertificateRevocationList static properties (public in 1.1, 
1873         internal for 1.0).
1874         * WebConnection.cs: Dynamically creates a SslClientStream (from 
1875         Mono.Security assembly) in case of https. Changed NetworkStream to 
1876         Stream everywhere.
1877
1878 2004-02-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1879
1880         * HttpWebRequest.cs: send the 'Connection: keep-alive' header when we
1881         don't know the server version or it's 1.0.
1882
1883         * ServicePoint.cs: added SetVersion.
1884
1885         * WebAsyncResult.cs: remove ChunkAsyncResult.
1886
1887         * WebConnection.cs: set the ServicePoint version when getting a response
1888         from the server.
1889
1890         * WebConnectionStream.cs: when posting chunked content, send the head,
1891         body and trailer of the chunk at once instead of doing 3 separate
1892         writes, which may cause troubles.
1893
1894 2004-02-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1895
1896         * WebConnection.cs: if we get a 100 when we're not waiting for it, set
1897         that information in the ServicePoint.
1898
1899         * WebConnectionStream.cs: send headers in the right order for
1900         non-chunked POST.
1901
1902 2004-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1903
1904         * WebConnectionStream.cs: fixed nullrefs in BeginWrite/EndWrite.
1905
1906 2004-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1907
1908         * HttpWebRequest.cs: on second and sucesive tries when authenticating,
1909         don't use chunked encoding for POST, as we know the content length and
1910         have the body. Nullify bodyBuffer always in CheckFinalStatus.
1911
1912         * WebAsyncResult.cs: added ChunkAsyncResult property. It holds the
1913         IAsyncResult when writing CRLF at the end of a chunk.
1914
1915         * WebConnectionStream.cs: support sending chunked data.
1916
1917 2004-01-24  Lluis Sanchez Gual <lluis@ximian.com>
1918
1919         * HttpWebRequest.cs: When retrying a POST request after an
1920         authentication failure, resend the body. This fixes bug #51841.
1921         * WebConnectionStream.cs: Added properties for getting what's been
1922         written.
1923
1924 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1925
1926         * HttpWebRequest.cs: don't send 'Expect: 100-continue' for 1.0 version.
1927
1928 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1929
1930         * HttpWebRequest.cs: support proxy authentication.
1931
1932 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1933
1934         * BasicClient.cs:
1935         * DigestClient.cs: use IndexOf instead of StartsWith to deal with
1936         servers that provide several authentication schemas.
1937
1938 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1939
1940         * ChunkStream.cs: use an array of buffers instead of a MemoryStream for
1941         storing the chunks. This way, we won't miss traling data from the
1942         previous chunk when a new one is received before the other is fully
1943         read.
1944
1945 2004-01-27  Nick Drochak <ndrochak@ieee.org>
1946
1947         * DigestClient.cs:
1948         * HttpWebRequest.cs:
1949         * IPv6Address.cs:
1950         * WebClient.cs:
1951         * WebConnection.cs:
1952         * WebConnectionStream.cs: Remove unused variables thus eliminating some
1953         build warnings.
1954
1955 2004-01-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1956
1957         * WebConnection.cs: patch by Yaacov Akiba Slama that fixes 100-continue
1958         handling for the case when the same packet also contains the actual
1959         [2-5]xx response.
1960
1961 2004-01-24  Lluis Sanchez Gual <lluis@ximian.com>
1962
1963         * HttpWebRequest.cs: Added missing property.
1964
1965 2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1966
1967         * Dns.cs: don't block forever in EndResolve and EndGetHostByName. Fixes
1968         bug #53222.
1969
1970 2004-01-16  Lluis Sanchez Gual <lluis@ximian.com>
1971
1972         * ChunkStream.cs: The "size" parameter of Write is not the number of
1973         bytes to write, but the last offset to be written. Thus, in WriteAndRead
1974         Back, since "read" is not an offset but the number of bytes, it must be 
1975         added to the offset. Maybe it would be a good idea to change the name of
1976         the parameter, since it is confusing. This should fix bug #52591.
1977
1978 2004-01-12  Lluis Sanchez Gual <lluis@ximian.com>
1979
1980         * WebConnection.cs: Yet another fix for WebConnection. This fixes 
1981         bug #52169.
1982
1983 2004-01-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1984
1985         * WebConnection.cs: Data.Init is a bad boy. Lluis realized. He also
1986         tidied up the end of ReadDone. Disabled relaunching the request if 2
1987         InitRead are called, since now we don't throw everything into
1988         RegisterWaitForSingleObject but one request at a time.
1989
1990         * WebConnectionGroup.cs: when checking available connections, allow them
1991         not to be Connected but allocated to honor the connection limit.
1992         
1993         * WebConnectionStream.cs: CheckComplete() now checks for nextReadCalled
1994         too. ReadAll don't mess contentLength if it's provided in the headers.
1995
1996         BIG thanks to Lluis. Turns out that we were debugging the same stuff and
1997         his Data.Init discovery was THE thing I was missing.
1998
1999         Fixes bug #51277.
2000
2001 2004-01-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2002
2003         * ServicePointManager.cs: use GetMaxConnections to get the appropiate
2004         number of connections limit.
2005
2006 2004-01-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2007
2008         * MonoHttpDate.cs: use the invariant culture, not en-US. Suspected
2009         guilty for bug 52629.
2010
2011 2003-12-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2012
2013         * CredentialCache.cs: return null instead of throwing NotImplemented.
2014
2015 2003-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2016
2017         * HttpWebRequest.cs: fixed checking if method allows a body. Patch by
2018         Benjamin Jemlich (pcgod@gmx.net).
2019
2020 2003-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2021
2022         * HttpWebRequest.cs: deal with authentication schemes that have more
2023         than 1 round trip (Ntlm).
2024
2025 2003-12-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2026
2027         * NtlmClient.cs: new class that actually uses one from Mono.Http to do
2028         the authentication.
2029
2030 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2031
2032         * HttpWebRequest.cs: when building the redirect URI, use the previous
2033         one as the base URI, which makes relative URIs work.
2034
2035 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2036
2037         * DigestClient.cs: merged in code from Sebastien Pouliot and Greg
2038         Reinacker that Supports cnonce and preauthentication.
2039
2040 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2041
2042         * DigestClient.cs: initial Digest authentication. Works with apache
2043         mod_digest.
2044
2045 2003-11-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2046
2047         * HttpWebRequest.cs: removed unneeded StringBuilder.
2048         * WebConnection.cs: default to keep the connection open for HTTP/1.1
2049         only or HTTP/1.0 + (Proxy-)Connection header. Fixes bug #51208.
2050
2051 2003-11-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2052
2053         * WebConnection.cs: turns out that socket.Connected is not useful until
2054         we actually try to send/receive data, even if the other end has already
2055         closed the socket. Added TryReconnect() and Connected.
2056
2057         * WebConnectionData.cs: default value for StatusCode is 0 now.
2058
2059         * WebConnectionGroup.cs: reuse the connection since the beginning,
2060         instead of opening up to ConnectionLimit and then reusing.
2061
2062         * WebConnectionStream.cs: reopen the socket if we're trying to reuse
2063         one which fails on first write.
2064
2065 2003-11-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2066
2067         * WebConnectionStream.cs: when a callback is passed to BeginRead/Write,
2068         wrap it and do our job before calling it. Fixes bug #48497.
2069
2070 2003-11-12  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2071
2072         * WebExceptionStatus.cs: Restyled, Added .Net 1.1 members
2073         * SecurityProtocolType.cs: Added and implemented
2074
2075 2003-11-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2076
2077         * HttpWebRequest.cs: fixed redirects when they target another host.
2078
2079 2003-11-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2080
2081         * IPAddress.cs: prevent exceptions when trying to parse the static IPv6
2082         addresses.
2083
2084 2003-10-17  Pedro Martinez Julia  <yoros@wanadoo.es>
2085
2086         * WebClient.cs: use Path.DirectorySeparator instead of "/" for
2087         windows compatibility. Add some checks for file paths like
2088         "C:/xxx/yyy/..." and like "/home/xxx/...".
2089
2090 2003-10-16  Pedro Martinez Julia  <yoros@wanadoo.es>
2091
2092         * WebClient.cs: added a slash between directory and file names.
2093
2094 2003-10-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2095
2096         * HttpWebRequest.cs:
2097         * HttpWebResponse.cs: better abort handling and leave the stream in a
2098         stable status on abort.
2099
2100 2003-10-12  Pedro Martinez Julia  <yoros@wanadoo.es>
2101
2102         * WebClient.cs: refine reading of local files (like MS.NET).
2103
2104 2003-10-10  Pedro Martinez Julia  <yoros@wanadoo.es>
2105
2106         * WebClient.cs: MS.NET works right when we try OpenRead("file.txt")
2107         but we didn't. Now, when Uri fails with an exception, it adds
2108         "file://" before the URI and tries again.
2109
2110 2003-10-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2111
2112         * ServicePoint.cs: preparing for recycling. Not yet finished.
2113         * ServicePointManager.cs: this is the one that reads config.
2114         * WebConnectionGroup.cs: don't read config here.
2115         * WebConnection.cs: added the queue again. Launch queued requests on
2116         error.
2117
2118 2003-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2119
2120         * WebConnection.cs: the queue is now handled by the threadpool.
2121         Initialize the connection data in a place where it does not depend on
2122         the execution order of the requests in threadpool. More error handling.
2123
2124         * WebConnectionGroup.cs: use the limits in the config file and reuse
2125         connections when the limit is reached.
2126
2127 2003-10-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2128
2129         * HttpWebRequest.cs: handle 304 a la MS.
2130         * WebConnection.cs: set the response data when reading 0 bytes.
2131
2132 2003-09-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2133
2134         * WebConnectionStream.cs: fix by Lluis to avoid the stream being in an
2135         invalid state.
2136
2137 2003-08-14  Nick Drochak <ndrochak@gol.com>
2138
2139         * WebRequest.cs: Check lower case string since that is what we will add.
2140
2141 2003-08-04  Jerome Laban <jlaban@wanadoo.fr>
2142
2143         * IPHostEntry.cs: Default contructor must not initialize members.
2144         (Fixes bug #45575).
2145
2146 2003-07-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2147
2148         * CredentialCache.cs: Removed undefined serializable attribute
2149
2150 2003-07-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2151
2152         * ChunkStream.cs:
2153         (WantMore): true if we've not received the last chunk yet. Fixes
2154         bug #45463. Thanks to Miguel for tracking this down and providing a
2155         test case.
2156         
2157         * WebConnection.cs: removed bogus ^M's.
2158         
2159         * WebHeaderCollection.cs: provide more info when the header or value is
2160         wrong.
2161
2162 2003-07-15  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2163
2164         * ChunkStream.cs: Removed unused members
2165         * IPAddress.cs: Removed unused exception variable, fixes compiler
2166         warning.
2167         * WebConnection.cs: Removed unused exception variables, fixes compiler
2168         warnings.
2169
2170 2003-07-14  Lluis Sanchez Gual <lluis@ximian.com>
2171
2172         * NetConfig.cs: If Clone method is not public, then it must use
2173           explicit interface method implementation syntax.
2174
2175 2003-07-14  Jerome Laban <jlaban@wanadoo.fr>
2176
2177         * Dns.cs: Reworked indentation.
2178         Added IPv6 support.
2179         Added literal address checking in GetHostByAddress.
2180         Changed Dns.Resolve behavior.
2181         * IPAddress.cs:
2182         * IPEndPoint.cs: Added IPv6 support.
2183         * IPv6Address.cs: Added address compression.
2184         * NetConfig.cs: Added configuration section.    
2185
2186 2003-07-14  Jerome Laban <jlaban@wanadoo.fr>
2187
2188         * ServicePoint.cs: Removed Connect and GetEndPoint methods.
2189         Removed reverse resolution when uri is literal IP address. 
2190         * WebConnection.cs: IPv6 compatibility update: Try to connect
2191         to all addresses returned by IPHostEntry.
2192         * WebConnectionGroup.cs: Removed unused parameter. 
2193
2194 2003-07-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2195
2196         * WebProxy.cs: Add serialization/ deserialization support
2197
2198 2003-07-10  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2199
2200         * ProxyUseType.cs:
2201         * WebStatus.cs: Deleted (do not exist in this assembly)
2202         * IPv6Address.cs: Made internal
2203
2204 2003-07-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2205
2206         * HttpWebRequest.cs:
2207         * ServicePointManager.cs:
2208         * WebConnection.cs: added support for proxies.
2209
2210 2003-07-05  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2211
2212         * DnsPermissionAttribute.cs:
2213         * SocketPermissionAttribute.cs: Fixed wrong AttributeUsageAttribute
2214
2215 2003-07-05  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2216
2217         * WebPermission.cs: Added and partially implemented
2218         * WebPermissionAttribute.cs: Added and implemented
2219
2220 2003-07-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2221
2222         * WebClient.cs: fixed bug #45651.
2223
2224 2003-06-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2225
2226         * WebClient.cs: Small fix by Sebastian <scut@nb.in-berlin.de>.
2227
2228 2003-06-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2229
2230         * WebConnection.cs: fixed header writing the reusing a connection and
2231         the server does not send 100-continue response.
2232
2233 2003-06-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2234
2235         * WebConnection.cs: close the socket and connection when disposing.
2236         * WebRequest.cs: removed setter for RequestUri. Allow non-public ctors
2237         when creating instances.
2238
2239         * HttpWebRequest.cs:
2240         * HttpWebResponse.cs:
2241         * FileWebRequest.cs: support serialization.
2242
2243         * FileWebResponse.cs: support serialization and fixed dispose checks.
2244
2245         * FileWebRequestCreator.cs:
2246         * HttpRequestCreator.cs: added internal .ctor.
2247
2248 2003-06-24  Lluis Sanchez Gual <lluis@ximian.com>
2249
2250         * HttpWebRequest.cs: SetWriteStream(): SendRequestHeaders should be
2251         called before asyncWrite.SetCompleted, to make sure that the waiting
2252         thread does not start to send more information before
2253         SendRequestHeaders has finished.
2254
2255 2003-06-22  Lluis Sanchez Gual <lluis@ximian.com>
2256
2257         * WebConnectionStream.cs: Only increment pendingReads if an asynchronous
2258         read is really needed.
2259
2260 2003-06-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2261
2262         * WebHeaderCollection.cs: prevent duplication headers used niternally.
2263
2264 2003-06-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2265
2266         * HttpWebRequest.cs: if CookieContainer has not been set, make
2267         HttpWebResponse ignore Set-Cookie* headers.
2268
2269         * HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if
2270         CookieContainer have been provided to the request.
2271
2272 2003-06-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2273
2274         * AuthenticationManager.cs: get the list of authentication modules from
2275         the configuration files. Added Clear and fixed Unregister.
2276
2277         * BasicClient.cs: fully implemented.
2278
2279         * HttpWebRequest.cs: added support for Basic authentication when
2280         credentials are set.
2281
2282         * NetworkCredential.cs: fixed GetCredential.
2283
2284 2003-06-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2285
2286         * HttpWebRequest.cs: *really* take care of requestSent to prevent
2287         sending the same request twice.
2288         * WebAsyncResult.cs: don't close the handle. Just Reset.
2289         * WebConnectionStream.cs: removed unneeded line.
2290
2291 2003-06-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2292
2293         * HttpWebRequest.cs: use InternalClose when we are not going to send the
2294         rest of the request stream because of an error after sending the
2295         headers.
2296
2297         * WebConnection.cs: check for completion after setting the response.
2298         Enable reading in NextRead.
2299
2300         * WebConnectionStream.cs: re-fixed the count for partially buffered
2301         reads. If the network stream returns 0 bytes, we're done.
2302
2303 2003-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2304
2305         * WebClient.cs: implemented UploadFile. Fixed SetupRequest to set the
2306         special headers *after* the others.
2307
2308 2003-06-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2309
2310         * WebConnectionStream.cs: when the read is partially filled from the
2311         initial buffer, add those bytes too. Thanks to Lluis for debugging this.
2312
2313 2003-06-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2314
2315         * HttpWebRequest.cs: added ExpectContinue property.
2316         * WebConnection.cs: allow 100 Continue to be delayed after waiting for
2317         it.
2318
2319 2003-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2320
2321         * HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
2322         is known not to respond to that.
2323
2324         * ServicePoint.cs: added SendContinue property.
2325
2326         * WebConnection.cs: only wait 2 seconds for a continue reply. If it
2327         timeouts, set SendContinue to false and proceeed sending data.
2328
2329         * WebConnectionStream.cs: if 100-continue is not received and instead we
2330         get a 417 or anything else, don't send the data.
2331
2332         * WebClient.cs: implemented all missing properties and methods except
2333         UploadFile.
2334
2335 2003-06-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2336
2337         * FileWebRequestCreator.cs: splitted from WebRequest.
2338         * HttpRequestCreator.cs: splitted fromWebRequest.
2339         * WebRequest.cs: added methods that are used by the new configuration
2340         handler to set prefix/type name requests creators.
2341
2342 2003-06-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2343
2344         * AuthenticationManager.cs:
2345         * Authorization.cs:
2346         * BasicClient.cs: new file.
2347         * ChunkStream.cs: new file.
2348         * Cookie.cs:
2349         * CookieContainer.cs:
2350         * GlobalProxySelection.cs:
2351         * HttpWebRequest.cs:
2352         * HttpWebResponse.cs:
2353         * IAuthenticationModule.cs:
2354         * ServicePoint.cs:
2355         * ServicePointManager.cs:
2356         * WebAsyncResult.cs: new file.
2357         * WebConnection.cs: new file.
2358         * WebConnectionData.cs: new file.
2359         * WebConnectionGroup.cs: new file.
2360         * WebConnectionStream.cs: new file.
2361         * WebException.cs:
2362         * WebHeaderCollection.cs:
2363         * WebProxy.cs:
2364         * WebResponse.cs:
2365
2366         Reworked HttpWebRequest and related classes.
2367
2368 2003-05-30  Miguel de Icaza  <miguel@ximian.com>
2369
2370         * HttpWebRequest.cs (EndGetResponse): Do not throw exceptions on
2371         InternalServerError (500)
2372
2373 2003-05-29  Miguel de Icaza  <miguel@ximian.com>
2374
2375         * HttpWebRequest.cs (Close): Move the code that accumulates the
2376         output to Close from Flush.  Flush could have been called in the
2377         middle of the processing, and would have generated invalid results
2378         (which it did).
2379
2380 2003-05-23  Zoltan Varga  <vargaz@freemail.hu>
2381
2382         * Dns.cs (GetHostByAddress): Return the local host when called with
2383         IF_ANY.
2384
2385 2003-04-29  Miguel de Icaza  <miguel@ximian.com>
2386
2387         * WebClient.cs (DownloadData): Close the underlyng stream.
2388         (DownloadFile): Use using, so the file gets closed.
2389
2390 2003-04-24  Miguel de Icaza  <miguel@ximian.com>
2391
2392         * WebClient.cs (DownloadData): Instead of using a MemoryStream,
2393         keep track of all the small chunks in an ArrayList.  The
2394         MemoryStream had the property of reallocating itself, and the
2395         problem was that MemoryStream.GetBuffer would return the buffer
2396         (correctly), but not something of the right size.  So clients of
2397         DownloadData would get the extra unused bytes as part of the
2398         result.
2399
2400         The solution would have been to make another copy at this point,
2401         instead, we only keep the small allocations around in the
2402         ArrayList, and we only do one large allocation at the end.
2403
2404         * HttpWebResponse.cs: If there is a Content-Length header, pass
2405         this information to our HttpWebResponseStream, so it knows when to
2406         stop, instead of waiting for the stream to be shut down by the
2407         other end.
2408
2409         * HttpWebRequest.cs: Only set the `delay-header-writing' mode on
2410         the underlying stream if the method will do a content transfer and
2411         no Content-Length was provided. If not (HEAD and GET or
2412         Content-Length provided), keep going.
2413         
2414 2003-04-23  Miguel de Icaza  <miguel@ximian.com>
2415
2416         * HttpWebRequest.cs: .NET Allows the HttpWebRequest to not have
2417         the ContentLength specified on the request.  If that happens, we
2418         have to accumulate all the data written, and once we accumulate
2419         the data, we send it off.  
2420
2421         Notice that the documentation in .NET is actually incorrect, they
2422         state that setting ContentLength is mandatory.  It is not.
2423
2424 2003-04-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2425
2426         * HttpWebResponse.cs: fixes bug #41180.
2427
2428 2003-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2429
2430         * HttpWebRequest.cs: throw an exception is the response code is >= 300.
2431
2432 2003-03-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2433
2434         * HttpWebRequest.cs: implemented IDisposable, make the request stream
2435         read only. Changed the way of disposing the socket.
2436
2437         * HttpWebResponse.cs: wrapped the socket in a write-only NetworkStream,
2438         handle chunked transfer encoding (no more hangs), added serialization
2439         stuff, call CheckDisposed at the beginning of methods/properties (not
2440         in a finally clause).
2441
2442 2003-02-17  Nick Drochak <ndrochak@gol.com>
2443
2444         * WebClient.cs : Implemented Credentials property.
2445
2446 2003-02-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2447
2448         * SocketAddress.cs: byte 1 of the data is the high byte of the family,
2449         not the size.
2450
2451 2003-01-29  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2452
2453         * WebClient.cs : hacked OpenRead, DownloadData and DownloadFile.
2454
2455 2002-10-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2456
2457         * HttpWebRequest.cs: applied patch from Tim Haynes
2458         (thaynes@openlinksw.com).
2459
2460         Avoided double-sending of the request to the server when both
2461         GetRequestStream() and GetResponse() are called.
2462         System Header attributes survive the Headers attribute set.
2463         Added handling of Connection: KeepAlive/Close
2464
2465 2002-10-03  Dick Porter  <dick@ximian.com>
2466
2467         * Dns.cs: Fixed GetHostName()
2468
2469 2002-09-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2470
2471         * HttpWebRequest.cs:
2472         * HttpWebResponse.cs: applied another patch from Shahms E. King
2473         (shahms@shahms.com).
2474
2475 2002-09-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2476
2477         * HttpWebRequest.cs:
2478         * HttpWebResponse.cs: applied patch from Shahms E. King
2479         (shahms@shahms.com).
2480
2481 2002-05-29  Lawrence Pit <loz@cable.a2000.nl>
2482
2483         * MonoHttpDate.cs: added
2484         * HttpWebRequest.cs: using MonoHttpDate
2485         * HttpWebResponse.cs: using MonoHttpDate
2486         * DnsPermission.cs: correct XML output
2487         * SocketPermission.cs: correct XML output
2488
2489 2002-05-21  Lawrence Pit <loz@cable.a2000.nl>
2490
2491         * WebClient.cs: stubbed
2492         * WebProxy.cs: fixed bug; had to change internal representation
2493         of bypasslist to ArrayList, different implementation of checking
2494         regex's.
2495
2496 2002-05-20  Lawrence Pit <loz@cable.a2000.nl>
2497
2498         * WebProxy.cs: added, implemented
2499         * ServicePoint.cs: implemented most
2500         * ServicePointManager.cs: implemented
2501         * HttpWebRequest.cs: started implementation
2502         * HttpWebResponse.cs: improved disposable routines
2503         * FileWebRequest.cs: slight improvement of Close method
2504         
2505 2002-05-19  Lawrence Pit <loz@cable.a2000.nl>
2506
2507         * FileWebRequest.cs: finished implementation of async methods.
2508         * FileWebResponse.cs: improved disposable routines.
2509         * IPEndPoint.cs: fixed bug #24666 in Serialize and Create methods, 
2510         byte ordering of address was backwards.
2511
2512 2002-05-13  Lawrence Pit <loz@cable.a2000.nl>
2513
2514         * Dns.cs: Reimplemented (simplified and fixed) asynchronous methods by
2515         relying on standard asynchronous delegate features. Added checks for
2516         null strings.
2517         * HttpWebResponse.cs: implemented properties
2518         * FileWebResponse.cs: improved the way resources are disposed.
2519         * FileWebRequest.cs: started implementation of asynchronous methods
2520         * ServicePointManager.cs: implemented properties
2521
2522 2002-05-12  Lawrence Pit <loz@cable.a2000.nl>
2523
2524         * HttpWebRequest.cs: properties implemented
2525         * HttpWebResponse.cs: added
2526         * GlobalProxySelection.cs: implemented
2527         * FileWebResponse.cs: added
2528         * FileWebRequest.cs: some methods implemented
2529
2530 2002-05-11  Lawrence Pit <loz@cable.a2000.nl>
2531
2532         * WebHeaderCollection.cs: implemented
2533         * WebRequest.cs: implemented
2534         * FileWebRequest.cs and HttpWebRequest.cs stubs added
2535
2536 2002-05-09  Lawrence Pit <loz@cable.a2000.nl>
2537
2538         * Rewrote IPAddress.Parse method, passing all unit tests
2539
2540 2002-05-09  Lawrence Pit <loz@cable.a2000.nl>
2541
2542         * fixed bug in IPEndPoint.Equals method
2543         * fixed bug in IPAddress.Parse method
2544         * fixed bug in IPAddress.SwapLong method
2545         * fixed several bugs in Cookie.cs
2546
2547 2002-05-06  Lawrence Pit <loz@cable.a2000.nl>
2548
2549         * WebRequest.cs: added
2550         * WebResponse.cs: implemented
2551         * WebException.cs: implemented
2552         * WebHeaderCollection.cs: added
2553         * HttpVersion.cs: implemented
2554         * HttpContinueDelegate.cs: added
2555         * IWebProxy.cs: added
2556         * IWebRequestCreate.cs: added
2557         * ICertificatePolicy.cs: added
2558         * ServicePoint.cs: stubbed
2559         * ServicePointManager.cs: stubbed
2560         * CookieContainer.cs: added
2561         * Authorization.cs: implemented
2562
2563 2002-05-05  Lawrence Pit <loz@cable.a2000.nl>
2564
2565         * CredentialCache.cs: implemented
2566
2567 2002-05-05  Lawrence Pit <loz@cable.a2000.nl>
2568
2569         * IPAddress.cs: fixed IsLoopback, address was already in host order
2570
2571 2002-05-05  Lawrence Pit <loz@cable.a2000.nl>
2572
2573         * IPv6Address.cs: added (note: not part of .net spec)
2574
2575 2002-05-01  Lawrence Pit <loz@cable.a2000.nl>
2576
2577         * DnsPermission.cs: implemented
2578         * DnsPermissionAttribute.cs: implemented
2579
2580 2002-04-28  Lawrence Pit <loz@cable.a2000.nl>
2581
2582         * EndpointPermission.cs: implemented
2583         * SocketPermission.cs: implemented
2584         * SocketPermissionAttribute.cs: implemented
2585         * ProtocolViolationException.cs: implemented
2586         * Dns.c: passing w32 error code when no host found
2587
2588 2002-04-27  Lawrence Pit <loz@cable.a2000.nl>
2589
2590         * Cookie.cs: implemented
2591         * CookieCollection.cs: implemented
2592         * CookieException.cs: implemented
2593
2594 2002-04-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2595
2596         * IPAddress.cs: initialize the read only fields with Parse().
2597
2598 2002-04-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2599
2600         * IPAddress.cs: little changes to behave as MS.
2601
2602 2002-04-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2603
2604         * Dns.cs (Resolve): behave as MS. Agreed with Mads.
2605
2606 2002-04-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2607
2608         * IPAddress.cs: the icalls for sockets are endianness-aware. So I
2609         changed a few things. Also included a workaround for bug #23547.
2610
2611 2002-04-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2612
2613         * IPAddress.cs: use System.BitConverter.IsLittleEndian (suggested
2614         by Paolo) instead of guessing the endianness.
2615
2616         * SocketAddress.cs: implemented Equals() and GetHashcode().
2617         
2618 2002-04-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2619
2620         * IPEndPoint.cs: modifications to constructors according to the
2621         specifications (suggested by Lawrence Pit).
2622
2623 2002-04-15  Patrik Torstensson <patrik.torstensson@labs2.com>
2624
2625         * IPEndPoint.cs: Fixed build breaker.
2626
2627 2002-04-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2628
2629         * IPEndPoint.cs: implemented Equals() and GetHashCode(). Now 100%
2630         complete.
2631
2632 2002-04-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2633
2634         * IPAddress.cs: finished all MonoTODO's. Use network order to store 
2635         the address. Check for max and min values in Address:set. IsLoopback()
2636         returns now true for all 127.x.y.z. Some more checks in Parse ().
2637         Some changes to behave as MS does.
2638
2639 2002-02-24  Duncan Mak  <duncan@ximian.com>
2640
2641         * ICredentialLookup.cs: Added the GetCredential method to the
2642         interface. The interface is named "ICredentials", should this file
2643         be renamed?     
2644
2645         * NetworkCredential.cs: Added to CVS. Need to investigate on how
2646         GetCredential() works
2647
2648 2002-01-23  Dick Porter  <dick@ximian.com>
2649
2650         * SocketAddress.cs: Implemented.
2651
2652         * IPEndPoint.cs: Turned 'Address' field into a real property.
2653         Implemented Create() and Serialize() methods.
2654
2655         * IPAddress.cs: Fixed class constructor, turned 'Address' field
2656         into a real property. Removed undocumented "public
2657         IPAddress(string)" constructor.
2658
2659         * EndPoint.cs: Implemented.  All methods return
2660         NotSupportedException to enforce subclass overriding.
2661
2662         * Dns.cs: Replaced fixed-layout Hostent struct and cygwin
2663         P/Invokes with portable internal calls.
2664
2665 2002-01-17  Miguel de Icaza  <miguel@ximian.com>
2666
2667         * Dns.cs: Updated to API changes.
2668
2669         * IPAddress.cs: Updated API.  Much left to implement.
2670
2671         * Dns.cs: Remove IPToString method
2672
2673 2002-01-06  Ravi Pratap  <ravi@ximian.com>
2674
2675         * Dns.cs, AuthenticationManager.cs, SocketAddress.cs : MonoTODO
2676         attribute insertion.
2677
2678 2001-11-22  Nick Drochak <ndrochak@gol.com>
2679
2680         * IPAddress.cs: Fix constructor bug, properly name Address property,
2681         and use triple-slash for comments.
2682
2683 2001-11-20  Miguel de Icaza  <miguel@ximian.com>
2684
2685         * IPAddress.cs: Updated to contain Any, Broadcast, Loopback and
2686         None as suggested by Phillip.
2687
2688 2001-09-26  Mads Pultz <mpultz@get2net.dk>
2689         * Dns.cs: Initial work on BeginGetHostByName and EndGetHostByName implemented.
2690
2691 2001-09-24  Mads Pultz <mpultz@get2net.dk>
2692
2693         * Dns.cs: Minor changes (some print statements removed)
2694
2695 2001-09-23  Mads Pultz <mpultz@get2net.dk>
2696
2697         * Dns.cs: Initial work submitted to repository.
2698         * IPHostEntry.cs: Initial work submitted to repository.
2699
2700 2001-07-12  Sean MacIsaac  <macisaac@ximian.com>
2701
2702         * Authorization.cs: Fixed compiler error.
2703
2704         * IAuthenticationModule.cs: Changes for Beta2.
2705
2706         * IPAddress.cs: Internal storage changed to be uint not int.
2707
2708         * IPEndPoint.cs: Fixed compiler error.
2709
2710         * EndPoint.cs: Fixed compiler error.
2711
2712         * AuthenticationManager.cs: Fixed typo.