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