2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System / System.Net / ChangeLog
1 2003-06-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * FileWebRequestCreator.cs: splitted from WebRequest.
4         * HttpRequestCreator.cs: splitted fromWebRequest.
5         * WebRequest.cs: added methods that are used by the new configuration
6         handler to set prefix/type name requests creators.
7
8 2003-06-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
9
10         * AuthenticationManager.cs:
11         * Authorization.cs:
12         * BasicClient.cs: new file.
13         * ChunkStream.cs: new file.
14         * Cookie.cs:
15         * CookieContainer.cs:
16         * GlobalProxySelection.cs:
17         * HttpWebRequest.cs:
18         * HttpWebResponse.cs:
19         * IAuthenticationModule.cs:
20         * ServicePoint.cs:
21         * ServicePointManager.cs:
22         * WebAsyncResult.cs: new file.
23         * WebConnection.cs: new file.
24         * WebConnectionData.cs: new file.
25         * WebConnectionGroup.cs: new file.
26         * WebConnectionStream.cs: new file.
27         * WebException.cs:
28         * WebHeaderCollection.cs:
29         * WebProxy.cs:
30         * WebResponse.cs:
31
32         Reworked HttpWebRequest and related classes.
33
34 2003-05-30  Miguel de Icaza  <miguel@ximian.com>
35
36         * HttpWebRequest.cs (EndGetResponse): Do not throw exceptions on
37         InternalServerError (500)
38
39 2003-05-29  Miguel de Icaza  <miguel@ximian.com>
40
41         * HttpWebRequest.cs (Close): Move the code that accumulates the
42         output to Close from Flush.  Flush could have been called in the
43         middle of the processing, and would have generated invalid results
44         (which it did).
45
46 2003-05-23  Zoltan Varga  <vargaz@freemail.hu>
47
48         * Dns.cs (GetHostByAddress): Return the local host when called with
49         IF_ANY.
50
51 2003-04-29  Miguel de Icaza  <miguel@ximian.com>
52
53         * WebClient.cs (DownloadData): Close the underlyng stream.
54         (DownloadFile): Use using, so the file gets closed.
55
56 2003-04-24  Miguel de Icaza  <miguel@ximian.com>
57
58         * WebClient.cs (DownloadData): Instead of using a MemoryStream,
59         keep track of all the small chunks in an ArrayList.  The
60         MemoryStream had the property of reallocating itself, and the
61         problem was that MemoryStream.GetBuffer would return the buffer
62         (correctly), but not something of the right size.  So clients of
63         DownloadData would get the extra unused bytes as part of the
64         result.
65
66         The solution would have been to make another copy at this point,
67         instead, we only keep the small allocations around in the
68         ArrayList, and we only do one large allocation at the end.
69
70         * HttpWebResponse.cs: If there is a Content-Length header, pass
71         this information to our HttpWebResponseStream, so it knows when to
72         stop, instead of waiting for the stream to be shut down by the
73         other end.
74
75         * HttpWebRequest.cs: Only set the `delay-header-writing' mode on
76         the underlying stream if the method will do a content transfer and
77         no Content-Length was provided. If not (HEAD and GET or
78         Content-Length provided), keep going.
79         
80 2003-04-23  Miguel de Icaza  <miguel@ximian.com>
81
82         * HttpWebRequest.cs: .NET Allows the HttpWebRequest to not have
83         the ContentLength specified on the request.  If that happens, we
84         have to accumulate all the data written, and once we accumulate
85         the data, we send it off.  
86
87         Notice that the documentation in .NET is actually incorrect, they
88         state that setting ContentLength is mandatory.  It is not.
89
90 2003-04-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
91
92         * HttpWebResponse.cs: fixes bug #41180.
93
94 2003-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
95
96         * HttpWebRequest.cs: throw an exception is the response code is >= 300.
97
98 2003-03-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
99
100         * HttpWebRequest.cs: implemented IDisposable, make the request stream
101         read only. Changed the way of disposing the socket.
102
103         * HttpWebResponse.cs: wrapped the socket in a write-only NetworkStream,
104         handle chunked transfer encoding (no more hangs), added serialization
105         stuff, call CheckDisposed at the beginning of methods/properties (not
106         in a finally clause).
107
108 2003-02-17  Nick Drochak <ndrochak@gol.com>
109
110         * WebClient.cs : Implemented Credentials property.
111
112 2003-02-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
113
114         * SocketAddress.cs: byte 1 of the data is the high byte of the family,
115         not the size.
116
117 2003-01-29  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
118
119         * WebClient.cs : hacked OpenRead, DownloadData and DownloadFile.
120
121 2002-10-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
122
123         * HttpWebRequest.cs: applied patch from Tim Haynes
124         (thaynes@openlinksw.com).
125
126         Avoided double-sending of the request to the server when both
127         GetRequestStream() and GetResponse() are called.
128         System Header attributes survive the Headers attribute set.
129         Added handling of Connection: KeepAlive/Close
130
131 2002-10-03  Dick Porter  <dick@ximian.com>
132
133         * Dns.cs: Fixed GetHostName()
134
135 2002-09-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
136
137         * HttpWebRequest.cs:
138         * HttpWebResponse.cs: applied another patch from Shahms E. King
139         (shahms@shahms.com).
140
141 2002-09-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
142
143         * HttpWebRequest.cs:
144         * HttpWebResponse.cs: applied patch from Shahms E. King
145         (shahms@shahms.com).
146
147 2002-05-29  Lawrence Pit <loz@cable.a2000.nl>
148
149         * MonoHttpDate.cs: added
150         * HttpWebRequest.cs: using MonoHttpDate
151         * HttpWebResponse.cs: using MonoHttpDate
152         * DnsPermission.cs: correct XML output
153         * SocketPermission.cs: correct XML output
154
155 2002-05-21  Lawrence Pit <loz@cable.a2000.nl>
156
157         * WebClient.cs: stubbed
158         * WebProxy.cs: fixed bug; had to change internal representation
159         of bypasslist to ArrayList, different implementation of checking
160         regex's.
161
162 2002-05-20  Lawrence Pit <loz@cable.a2000.nl>
163
164         * WebProxy.cs: added, implemented
165         * ServicePoint.cs: implemented most
166         * ServicePointManager.cs: implemented
167         * HttpWebRequest.cs: started implementation
168         * HttpWebResponse.cs: improved disposable routines
169         * FileWebRequest.cs: slight improvement of Close method
170         
171 2002-05-19  Lawrence Pit <loz@cable.a2000.nl>
172
173         * FileWebRequest.cs: finished implementation of async methods.
174         * FileWebResponse.cs: improved disposable routines.
175         * IPEndPoint.cs: fixed bug #24666 in Serialize and Create methods, 
176         byte ordering of address was backwards.
177
178 2002-05-13  Lawrence Pit <loz@cable.a2000.nl>
179
180         * Dns.cs: Reimplemented (simplified and fixed) asynchronous methods by
181         relying on standard asynchronous delegate features. Added checks for
182         null strings.
183         * HttpWebResponse.cs: implemented properties
184         * FileWebResponse.cs: improved the way resources are disposed.
185         * FileWebRequest.cs: started implementation of asynchronous methods
186         * ServicePointManager.cs: implemented properties
187
188 2002-05-12  Lawrence Pit <loz@cable.a2000.nl>
189
190         * HttpWebRequest.cs: properties implemented
191         * HttpWebResponse.cs: added
192         * GlobalProxySelection.cs: implemented
193         * FileWebResponse.cs: added
194         * FileWebRequest.cs: some methods implemented
195
196 2002-05-11  Lawrence Pit <loz@cable.a2000.nl>
197
198         * WebHeaderCollection.cs: implemented
199         * WebRequest.cs: implemented
200         * FileWebRequest.cs and HttpWebRequest.cs stubs added
201
202 2002-05-09  Lawrence Pit <loz@cable.a2000.nl>
203
204         * Rewrote IPAddress.Parse method, passing all unit tests
205
206 2002-05-09  Lawrence Pit <loz@cable.a2000.nl>
207
208         * fixed bug in IPEndPoint.Equals method
209         * fixed bug in IPAddress.Parse method
210         * fixed bug in IPAddress.SwapLong method
211         * fixed several bugs in Cookie.cs
212
213 2002-05-06  Lawrence Pit <loz@cable.a2000.nl>
214
215         * WebRequest.cs: added
216         * WebResponse.cs: implemented
217         * WebException.cs: implemented
218         * WebHeaderCollection.cs: added
219         * HttpVersion.cs: implemented
220         * HttpContinueDelegate.cs: added
221         * IWebProxy.cs: added
222         * IWebRequestCreate.cs: added
223         * ICertificatePolicy.cs: added
224         * ServicePoint.cs: stubbed
225         * ServicePointManager.cs: stubbed
226         * CookieContainer.cs: added
227         * Authorization.cs: implemented
228
229 2002-05-05  Lawrence Pit <loz@cable.a2000.nl>
230
231         * CredentialCache.cs: implemented
232
233 2002-05-05  Lawrence Pit <loz@cable.a2000.nl>
234
235         * IPAddress.cs: fixed IsLoopback, address was already in host order
236
237 2002-05-05  Lawrence Pit <loz@cable.a2000.nl>
238
239         * IPv6Address.cs: added (note: not part of .net spec)
240
241 2002-05-01  Lawrence Pit <loz@cable.a2000.nl>
242
243         * DnsPermission.cs: implemented
244         * DnsPermissionAttribute.cs: implemented
245
246 2002-04-28  Lawrence Pit <loz@cable.a2000.nl>
247
248         * EndpointPermission.cs: implemented
249         * SocketPermission.cs: implemented
250         * SocketPermissionAttribute.cs: implemented
251         * ProtocolViolationException.cs: implemented
252         * Dns.c: passing w32 error code when no host found
253
254 2002-04-27  Lawrence Pit <loz@cable.a2000.nl>
255
256         * Cookie.cs: implemented
257         * CookieCollection.cs: implemented
258         * CookieException.cs: implemented
259
260 2002-04-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
261
262         * IPAddress.cs: initialize the read only fields with Parse().
263
264 2002-04-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
265
266         * IPAddress.cs: little changes to behave as MS.
267
268 2002-04-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
269
270         * Dns.cs (Resolve): behave as MS. Agreed with Mads.
271
272 2002-04-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
273
274         * IPAddress.cs: the icalls for sockets are endianness-aware. So I
275         changed a few things. Also included a workaround for bug #23547.
276
277 2002-04-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
278
279         * IPAddress.cs: use System.BitConverter.IsLittleEndian (suggested
280         by Paolo) instead of guessing the endianness.
281
282         * SocketAddress.cs: implemented Equals() and GetHashcode().
283         
284 2002-04-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
285
286         * IPEndPoint.cs: modifications to constructors according to the
287         specifications (suggested by Lawrence Pit).
288
289 2002-04-15  Patrik Torstensson <patrik.torstensson@labs2.com>
290
291         * IPEndPoint.cs: Fixed build breaker.
292
293 2002-04-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
294
295         * IPEndPoint.cs: implemented Equals() and GetHashCode(). Now 100%
296         complete.
297
298 2002-04-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
299
300         * IPAddress.cs: finished all MonoTODO's. Use network order to store 
301         the address. Check for max and min values in Address:set. IsLoopback()
302         returns now true for all 127.x.y.z. Some more checks in Parse ().
303         Some changes to behave as MS does.
304
305 2002-02-24  Duncan Mak  <duncan@ximian.com>
306
307         * ICredentialLookup.cs: Added the GetCredential method to the
308         interface. The interface is named "ICredentials", should this file
309         be renamed?     
310
311         * NetworkCredential.cs: Added to CVS. Need to investigate on how
312         GetCredential() works
313
314 2002-01-23  Dick Porter  <dick@ximian.com>
315
316         * SocketAddress.cs: Implemented.
317
318         * IPEndPoint.cs: Turned 'Address' field into a real property.
319         Implemented Create() and Serialize() methods.
320
321         * IPAddress.cs: Fixed class constructor, turned 'Address' field
322         into a real property. Removed undocumented "public
323         IPAddress(string)" constructor.
324
325         * EndPoint.cs: Implemented.  All methods return
326         NotSupportedException to enforce subclass overriding.
327
328         * Dns.cs: Replaced fixed-layout Hostent struct and cygwin
329         P/Invokes with portable internal calls.
330
331 2002-01-17  Miguel de Icaza  <miguel@ximian.com>
332
333         * Dns.cs: Updated to API changes.
334
335         * IPAddress.cs: Updated API.  Much left to implement.
336
337         * Dns.cs: Remove IPToString method
338
339 2002-01-06  Ravi Pratap  <ravi@ximian.com>
340
341         * Dns.cs, AuthenticationManager.cs, SocketAddress.cs : MonoTODO
342         attribute insertion.
343
344 2001-11-22  Nick Drochak <ndrochak@gol.com>
345
346         * IPAddress.cs: Fix constructor bug, properly name Address property,
347         and use triple-slash for comments.
348
349 2001-11-20  Miguel de Icaza  <miguel@ximian.com>
350
351         * IPAddress.cs: Updated to contain Any, Broadcast, Loopback and
352         None as suggested by Phillip.
353
354 2001-09-26  Mads Pultz <mpultz@get2net.dk>
355         * Dns.cs: Initial work on BeginGetHostByName and EndGetHostByName implemented.
356
357 2001-09-24  Mads Pultz <mpultz@get2net.dk>
358
359         * Dns.cs: Minor changes (some print statements removed)
360
361 2001-09-23  Mads Pultz <mpultz@get2net.dk>
362
363         * Dns.cs: Initial work submitted to repository.
364         * IPHostEntry.cs: Initial work submitted to repository.
365
366 2001-07-12  Sean MacIsaac  <macisaac@ximian.com>
367
368         * Authorization.cs: Fixed compiler error.
369
370         * IAuthenticationModule.cs: Changes for Beta2.
371
372         * IPAddress.cs: Internal storage changed to be uint not int.
373
374         * IPEndPoint.cs: Fixed compiler error.
375
376         * EndPoint.cs: Fixed compiler error.
377
378         * AuthenticationManager.cs: Fixed typo.