New tests.
[mono.git] / mcs / class / System.Net / System.Net / ChangeLog
1 2010-03-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2
3         * WebRequest_2_1.cs: Added UseDefaultCredentials property.
4
5 2010-03-12  Sebastien Pouliot  <sebastien@ximian.com>
6
7         * WebClient_2_1.cs: Directly set 'progress' delegate field
8         * WebRequest_2_1.cs: Avoid using reflection (since it was not 
9         really needed anyway)
10
11 2010-03-03  Andreia Gaita  <avidigal@novell.com>
12
13         * InternalWebRequestStreamWrapper.cs: don't add a newline to the
14         request data, whatever uses the data should be the one adding
15         newlines if they need it (i.e., moon's ff bridge needs it, the
16         curl bridge doesn't)
17
18 2010-02-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19
20         * WebClient_2_1.cs: Emit DownloadProgressChanged events on the correct
21         thread too.
22
23 2010-02-23  Sebastien Pouliot  <sebastien@ximian.com>
24
25         * HttpWebRequest_2_1.cs: Accept and ContentType properties do not
26         behave like Silverlight 2.0 (not related to browser/client stacks)
27         * WebHeaderCollection_2_1.cs: Range is now accepted in SL3 (not
28         related to browser/client stacks)
29         * WebRequest_2_1.cs: Fix registration to work on domains (new) 
30         and scheme (more correctly wrt new unit tests).
31
32 2010-02-16  Sebastien Pouliot  <sebastien@ximian.com>
33
34         * WebClient_2_1.cs: Keep a copy of 'userToken' since we need to
35         supply it when calling OnDownloadProgressChanged
36         * WebRequest_2_1.cs (SetupProgressDelegate): Simplify signature
37
38 2010-01-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
39
40         * WebClient_2_1.cs: Ensure the WriteStreamClosed event is emitted on
41         the correct thread (by using the stored SynchronizationContext).
42
43         * InternalWebRequestStreamWrapper.cs: Add a WebClientData field which
44         is passed to the WriteStreamClosedCallback.
45
46 2010-01-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
47
48         * WebClient_2_1.cs: The async events must be invoked on a threadpool
49         thread if the async method wasn't executed on the main thread, so save
50         the synchronization context when the async method is called, and post
51         the event to that synchronization context when done. This is also
52         required when the async methods are executed on the main thread, since
53         HttpWebRequest callbacks are now always executed on a threadpool thread.
54
55 2010-01-25  Sebastien Pouliot  <sebastien@ximian.com>
56
57         * UdpAnySourceMulticastClient.cs: New. Stub for SL4
58         * UdpSingleSourceMulticastClient.cs: New. Stub for SL4
59
60 2010-01-13  Sebastien Pouliot  <sebastien@ximian.com>
61
62         * HttpWebRequest_2_1.cs: Throw for CookieContainer. It is 
63         implemented only in the client http stack (and for a limited
64         time in the browser stack too ;-)
65         * InternalWebRequestStreamWrapper.cs: Keep the MemoryStream data
66         available after closing/disposing (by user) since our own code
67         will need it later (e.g. when posting like DRT287)
68         * WebHeaderCollection_2_1.cs: Provide an argument to 
69         ArgumentException. Found by Gendarme's ArgumentException
70         InstantiateArgumentExceptionCorrectlyRule
71
72 2010-01-12  Sebastien Pouliot  <sebastien@ximian.com>
73
74         * WebRequest_2_1.cs: Rework registration wrt the two, browser
75         and client, stacks offered in SL3. Only global works now.
76
77 2010-01-11  Sebastien Pouliot  <sebastien@ximian.com>
78
79         * InternalWebRequestStreamWrapper.cs: New. Moved (and adapted) 
80         from Moonlight System.Windows.Browser assembly.
81         * InternalWebResponseStreamWrapper.cs: New. Moved (and adapted) 
82         from Moonlight System.Windows.Browser assembly.
83         * WebClient_2_1.cs: Remove custom delegate declaration (Gendarme's
84         AvoidDeclaringCustomDelegatesRule). Remove locking over a variable
85         (Gendarme's ReviewLockUsedOnlyForOperationsOnVariablesRule). 
86         Avoid potential race with event handlers (Gendarme's 
87         ProtectCallsToEventDelegatesRule). Implement OnWriteStreamClosed
88         * WebRequest_2_1.cs: Signature change from delegate to 
89         Action<long,long,object>. Found using Gendarme's
90         AvoidDeclaringCustomDelegatesRule
91
92 2009-12-12  Rolf Bjarne Kvinge  <RKvinge@novell.com>
93
94         * WebClient_2_1.cs: When creating the request we need to copy over
95         any headers the user set on us. We also need to wrap
96         InvalidOperationExceptions in WebExceptions.
97
98 2009-12-04  Sebastien Pouliot  <sebastien@ximian.com> 
99
100         * HttpStatusCode_2_1.cs: Remove. SL3 provides all status code 
101         since they are used for the client stack
102         * WebClient_2_1.cs: Add Credentials property and change
103         ResponseHeaders property to public
104         * WebRequest_2_1.cs: Add Credentials property
105
106 2009-12-04  Sebastien Pouliot  <sebastien@ximian.com>
107
108         * DnsEndPoint_2_1.cs: Moved to System.dll since it's also part
109         of .net 4.0
110
111 2009-12-04  Sebastien Pouliot  <sebastien@ximian.com> 
112
113         * HttpWebRequest_2_1.cs: Add CookieCollection, need to be 
114         implemented in the client stack
115         * HttpWebResponse_2_1.cs: CookieContainer is virtual. Add FIXME
116         to move (a real) implementation into the client stack
117         * WebRequest_2_1.cs: Add Create(string) overload (SL3)
118
119 2009-09-24  Sebastien Pouliot  <sebastien@ximian.com> 
120
121         * Dns_2_1.cs: New. Smaller version of Dns.cs that offers just
122         enough for DnsEndPoint support
123
124 2009-09-24  Sebastien Pouliot  <sebastien@ximian.com>
125
126         * DnsEndPoint_2_1.cs: Remove (now) unneeded method
127
128 2009-07-16  Sebastien Pouliot  <sebastien@ximian.com>
129
130         * WebHeaderCollection_2_1.cs: Seal type.
131
132 2009-06-17  Sebastien Pouliot  <sebastien@ximian.com>
133
134         * WebClient_2_1.cs: Fix BaseAddress and remove dual base[Address|
135         String] variables.
136
137 2009-06-05  Sebastien Pouliot  <sebastien@ximian.com>
138
139         * WebClient_2_1.cs: Make sure *CompletedEventArgs gets called 
140         even in case an exception occurs before the BeginGetResponse 
141         call. Adjust API for OpenReadCompletedEventArgs.
142
143 2009-06-04  Sebastien Pouliot  <sebastien@ximian.com>
144
145         * WebClient_2_1.cs: Remove the creation of threads and use the
146         async methods provided by WebRequest (and its friends). Use an
147         internal object to lock on (not this). Remove comments from the
148         original (mono) WebClient since the code has diverged so much.
149         Fix DRT#326 (hopefully others too or at least more than it breaks)
150
151 2009-06-01  Sebastien Pouliot  <sebastien@ximian.com>
152
153         * HttpWebRequest_2_1.cs: Avoid possible NRE while settings a
154         complete collection.
155         * WebResponse_2_1.cs: Use StringComparer.OrdinalIgnoreCase on 
156         the prefix Dictionary
157
158 2009-05-26  Sebastien Pouliot  <sebastien@ximian.com>
159
160         * WebClient_2_1.cs: Add internal WebHeaderCollection. Change
161         signature for OpenPolicyReadAsync to take an addtional object
162         * WebResponse_2_1.cs: Add internal WebHeaderCollection
163
164 2009-05-22  Sebastien Pouliot  <sebastien@ximian.com>
165
166         * WebClient_2_1.cs: Add an internal OpenPolicyReadAsync. Check 
167         result in ProcessResponse and throw if not Ok (200).
168         * WebRequest_2_1.cs: Add an internal overload to BeginGetResponse
169         from where we can handle downloading the policy.
170
171 2009-05-14  Sebastien Pouliot  <sebastien@ximian.com>
172
173         * DnsEndPoint_2_1.cs: Add method to return an IPEndPoint from a
174         DnsEndPoint that match the requested AddressFamily
175
176 2009-05-12  Sebastien Pouliot  <sebastien@ximian.com>
177
178         * WebHeaderCollection_2_1.cs: Headers are case insensitive but we
179         must keep them in their original form since AllKeys property will
180         report them that way and user code (like DRT#288) can depends on
181         this behavior.
182
183 2009-05-11  Sebastien Pouliot  <sebastien@ximian.com>
184
185         * WebHeaderCollection_2_1.cs: Headers are removed only in special
186         cases and never when the "this" property is used. Call ToLower
187         in SetHeader too in order to avoid typos.
188
189 2009-05-11  Sebastien Pouliot  <sebastien@ximian.com>
190
191         * HttpWebRequest_2_1.cs: Fix Accept and ContentType properties
192         to use, with special care, the Headers property
193         * WebHeaderCollection_2_1.cs (SetHeader): Add or remove header.
194
195 2009-05-10  Sebastien Pouliot  <sebastien@ximian.com>
196
197         * HttpWebRequest_2_1.cs: Move Headers property logic here (as 
198         shown by adding more unit tests)
199         * WebClient_2_1.cs: Add comment that Headers are not validated
200         there, but later.
201         * WebHeaderCollection_2_1.cs: Add a SetHeader method that can 
202         work around the normal validations that the "this" property
203         needs to do.
204
205 2009-05-09  Sebastien Pouliot  <sebastien@ximian.com>
206
207         * WebHeaderCollection_2_1.cs: When associated with a WebRequest 
208         the header collection items needs to be validated since not all
209         headers will be valid. Part of fix for DRT#532
210
211 2009-04-16  Sebastien Pouliot  <sebastien@ximian.com> 
212
213         * HttpWebRequest_2_1.cs: Rework the throwing of NIE so gui-compare
214         does not report them (since they are the "right" behavior)
215         * WebClient_2_1.cs: Fix BaseAddress property to return the URI to 
216         the XAP file. Implement protected GetWebRequest which will make an
217         absolute URI from a relative one (using BaseAddress). That remove
218         the need of the previous hack.
219         * WebRequest_2_1.cs: Remove previous hack
220
221 2009-04-11  Sebastien Pouliot  <sebastien@ximian.com> 
222
223         * WebClient_2_1.cs: WebClient allows relative URI...
224         * WebRequest_2_1.cs: ...while WebRequest does not by default. 
225         Also uncomment a few checks for new test cases
226
227 2009-04-11  Sebastien Pouliot  <sebastien@ximian.com>
228
229         * DnsEndPoint_2_1.cs: Adjust exceptions wrt unit tests
230         * HttpWebRequest_2_1.cs: Fix Headers property wrt unit tests: 
231         * WebClient_2_1.cs: Fix some properties
232         * WebHeaderCollection_2_1.cs: Adjust exceptions wrt unit tests
233         * WebRequest_2_1.cs: Add RegisterPrefix functionality and add
234         missing checks (fix unit tests)
235
236 2009-04-09  Sebastien Pouliot  <sebastien@ximian.com>
237
238         * DnsEndPoint_2_1.cs: Fix header.
239         * HttpStatusCode_2_1.cs: New. SL2 (short) version of the enum
240         * HttpWebRequest_2_1.cs: Add missing members
241         * WebExceptionStatus_2_1.cs: New. SL2 (short) version of the enum
242         * WebHeaderCollection_2_1.cs: Implement S.C.IEnumerable
243
244 2009-03-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
245
246         * WebClient_2_1.cs: OnOpenReadCompleted and OnDownloadStringCompleted:
247         make sure we don't pass any exceptions back to native code.
248
249 2009-03-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
250
251         * WebClient_2_1.cs: Stub out missing methods.
252         * WriteStreamClosedEventArgs_2_1.cs: 
253         * WriteStreamClosedEventHandler_2_1.cs: Added.
254
255 2009-02-05  Geoff Norton  <gnorton@novell.com>
256
257         * WebClient_2_1.cs: Use g_timeout_add instead of g_idle_add here until
258         SyncContext is ready, as its less prone to starvation.
259
260 2009-02-05  Geoff Norton  <gnorton@novell.com>
261
262         * WebClient_2_1.cs: CancelAsync calls Thread.Interrupt so needs to be
263         SecuritySafeCritical for now.
264
265 2009-01-26  Rolf Bjarne Kvinge  <rkvinge@novell.com>
266
267         * WebClient_2_1.cs: Ensure we don't let exceptions go to native code.
268         * HttpWebRequest_2_1.cs: Add AllowReadStreamBuffering.
269
270 2009-01-21  Geoff Norton  <gnorton@novell.com>
271
272         * WebClient_2_1.cs: Make the ManualResetEvent local to the callback
273         because a WebClient can be reused causing a wait-handle race here
274         allowing a delegate to get collected causing a crash.
275
276 2009-01-21  Chris Toshok  <toshok@ximian.com>
277
278         * WebClient_2_1.cs: add 1 method back in, CancelAsync.
279
280 2009-01-12  Geoff Norton  <gnorton@novell.com>
281
282         * WebClient_2.1.cs: SL2 webclient supports BaseAddress.
283
284 2008-10-16  Jb Evain  <jbevain@novell.com>
285
286         * WebHeaderCollection_2_1.cs: update to SL2 api.
287
288 2008-10-16  Jb Evain  <jbevain@novell.com>
289
290         * WebResponse_2_1.cs: update API to SL2.
291
292 2008-08-21  Stephane Delcroix  <sdelcroix@novell.com>
293
294         * WebClient_2_1.cs: set the address on OpenReadCompletedEventArgs
295         ctor.
296
297 2008-08-21  Stephane Delcroix  <sdelcroix@novell.com>
298
299         * WebClient_2_1.cs: enable the DownloadStringAsync code
300
301 2008-08-19  Geoff Norton  <gnorton@novell.com>
302
303         * WebClient_2_1.cs: Keep a reference to the tick callback until its completed.
304
305 2008-08-18  Geoff Norton  <gnorton@novell.com>
306
307         * WebRequest_2_1.cs: Set a delegate callback for BrowserHttpWebRequest
308         to update progress.
309         * WebClient_2_1.cs: Refactor the OnDownloadedChanged method, as its already
310         emitting on the right thread.  Clean up the OnOpenReadCompleted method.
311         Set a delegate callback for BrowserHttpWebRequest to updated Progress.
312
313 2008-08-17  Geoff Norton  <gnorton@novell.com>
314
315         * WebRequest_2_1.cs: We support relative URI's now.
316
317 2008-08-14  Geoff Norton  <gnorton@novell.com>
318
319         * WebClient_2_1.cs: A dirty hack to emit the events on the proper thread
320         until we can figure out exactly how to leverage Dispatcher over here.
321
322 2008-06-18  Stephane Delcroix  <sdelcroix@novell.com>
323
324         * WebRequest_2_1.cs: Load BrowserHttpWebRequest from the right assembly
325
326 2008-06-10  Stephane Delcroix  <sdelcroix@novell.com>
327
328         * DnsEndPoint_2_1.cs: embed an IPAddress and rely on IPEndPoint
329         for serialization.
330
331 2008-06-04  Stephane Delcroix  <sdelcroix@novell.com>
332
333         * DnsEndPoint_2_1.cs: new DnsEndPoint class for SL2b1
334
335 2008-04-13  Jb Evain  <jbevain@novell.com>
336
337         * *_2_1.cs: move the specific 2.1 System.Net code to the
338         assembly System.Net.