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