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