2009-06-04 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / System.Net / System.Net / ChangeLog
1 2009-06-04  Sebastien Pouliot  <sebastien@ximian.com>
2
3         * WebClient_2_1.cs: Remove the creation of threads and use the
4         async methods provided by WebRequest (and its friends). Use an
5         internal object to lock on (not this). Remove comments from the
6         original (mono) WebClient since the code has diverged so much.
7         Fix DRT#326 (hopefully others too or at least more than it breaks)
8
9 2009-06-01  Sebastien Pouliot  <sebastien@ximian.com>
10
11         * HttpWebRequest_2_1.cs: Avoid possible NRE while settings a
12         complete collection.
13         * WebResponse_2_1.cs: Use StringComparer.OrdinalIgnoreCase on 
14         the prefix Dictionary
15
16 2009-05-26  Sebastien Pouliot  <sebastien@ximian.com>
17
18         * WebClient_2_1.cs: Add internal WebHeaderCollection. Change
19         signature for OpenPolicyReadAsync to take an addtional object
20         * WebResponse_2_1.cs: Add internal WebHeaderCollection
21
22 2009-05-22  Sebastien Pouliot  <sebastien@ximian.com>
23
24         * WebClient_2_1.cs: Add an internal OpenPolicyReadAsync. Check 
25         result in ProcessResponse and throw if not Ok (200).
26         * WebRequest_2_1.cs: Add an internal overload to BeginGetResponse
27         from where we can handle downloading the policy.
28
29 2009-05-14  Sebastien Pouliot  <sebastien@ximian.com>
30
31         * DnsEndPoint_2_1.cs: Add method to return an IPEndPoint from a
32         DnsEndPoint that match the requested AddressFamily
33
34 2009-05-12  Sebastien Pouliot  <sebastien@ximian.com>
35
36         * WebHeaderCollection_2_1.cs: Headers are case insensitive but we
37         must keep them in their original form since AllKeys property will
38         report them that way and user code (like DRT#288) can depends on
39         this behavior.
40
41 2009-05-11  Sebastien Pouliot  <sebastien@ximian.com>
42
43         * WebHeaderCollection_2_1.cs: Headers are removed only in special
44         cases and never when the "this" property is used. Call ToLower
45         in SetHeader too in order to avoid typos.
46
47 2009-05-11  Sebastien Pouliot  <sebastien@ximian.com>
48
49         * HttpWebRequest_2_1.cs: Fix Accept and ContentType properties
50         to use, with special care, the Headers property
51         * WebHeaderCollection_2_1.cs (SetHeader): Add or remove header.
52
53 2009-05-10  Sebastien Pouliot  <sebastien@ximian.com>
54
55         * HttpWebRequest_2_1.cs: Move Headers property logic here (as 
56         shown by adding more unit tests)
57         * WebClient_2_1.cs: Add comment that Headers are not validated
58         there, but later.
59         * WebHeaderCollection_2_1.cs: Add a SetHeader method that can 
60         work around the normal validations that the "this" property
61         needs to do.
62
63 2009-05-09  Sebastien Pouliot  <sebastien@ximian.com>
64
65         * WebHeaderCollection_2_1.cs: When associated with a WebRequest 
66         the header collection items needs to be validated since not all
67         headers will be valid. Part of fix for DRT#532
68
69 2009-04-16  Sebastien Pouliot  <sebastien@ximian.com> 
70
71         * HttpWebRequest_2_1.cs: Rework the throwing of NIE so gui-compare
72         does not report them (since they are the "right" behavior)
73         * WebClient_2_1.cs: Fix BaseAddress property to return the URI to 
74         the XAP file. Implement protected GetWebRequest which will make an
75         absolute URI from a relative one (using BaseAddress). That remove
76         the need of the previous hack.
77         * WebRequest_2_1.cs: Remove previous hack
78
79 2009-04-11  Sebastien Pouliot  <sebastien@ximian.com> 
80
81         * WebClient_2_1.cs: WebClient allows relative URI...
82         * WebRequest_2_1.cs: ...while WebRequest does not by default. 
83         Also uncomment a few checks for new test cases
84
85 2009-04-11  Sebastien Pouliot  <sebastien@ximian.com>
86
87         * DnsEndPoint_2_1.cs: Adjust exceptions wrt unit tests
88         * HttpWebRequest_2_1.cs: Fix Headers property wrt unit tests: 
89         * WebClient_2_1.cs: Fix some properties
90         * WebHeaderCollection_2_1.cs: Adjust exceptions wrt unit tests
91         * WebRequest_2_1.cs: Add RegisterPrefix functionality and add
92         missing checks (fix unit tests)
93
94 2009-04-09  Sebastien Pouliot  <sebastien@ximian.com>
95
96         * DnsEndPoint_2_1.cs: Fix header.
97         * HttpStatusCode_2_1.cs: New. SL2 (short) version of the enum
98         * HttpWebRequest_2_1.cs: Add missing members
99         * WebExceptionStatus_2_1.cs: New. SL2 (short) version of the enum
100         * WebHeaderCollection_2_1.cs: Implement S.C.IEnumerable
101
102 2009-03-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
103
104         * WebClient_2_1.cs: OnOpenReadCompleted and OnDownloadStringCompleted:
105         make sure we don't pass any exceptions back to native code.
106
107 2009-03-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
108
109         * WebClient_2_1.cs: Stub out missing methods.
110         * WriteStreamClosedEventArgs_2_1.cs: 
111         * WriteStreamClosedEventHandler_2_1.cs: Added.
112
113 2009-02-05  Geoff Norton  <gnorton@novell.com>
114
115         * WebClient_2_1.cs: Use g_timeout_add instead of g_idle_add here until
116         SyncContext is ready, as its less prone to starvation.
117
118 2009-02-05  Geoff Norton  <gnorton@novell.com>
119
120         * WebClient_2_1.cs: CancelAsync calls Thread.Interrupt so needs to be
121         SecuritySafeCritical for now.
122
123 2009-01-26  Rolf Bjarne Kvinge  <rkvinge@novell.com>
124
125         * WebClient_2_1.cs: Ensure we don't let exceptions go to native code.
126         * HttpWebRequest_2_1.cs: Add AllowReadStreamBuffering.
127
128 2009-01-21  Geoff Norton  <gnorton@novell.com>
129
130         * WebClient_2_1.cs: Make the ManualResetEvent local to the callback
131         because a WebClient can be reused causing a wait-handle race here
132         allowing a delegate to get collected causing a crash.
133
134 2009-01-21  Chris Toshok  <toshok@ximian.com>
135
136         * WebClient_2_1.cs: add 1 method back in, CancelAsync.
137
138 2009-01-12  Geoff Norton  <gnorton@novell.com>
139
140         * WebClient_2.1.cs: SL2 webclient supports BaseAddress.
141
142 2008-10-16  Jb Evain  <jbevain@novell.com>
143
144         * WebHeaderCollection_2_1.cs: update to SL2 api.
145
146 2008-10-16  Jb Evain  <jbevain@novell.com>
147
148         * WebResponse_2_1.cs: update API to SL2.
149
150 2008-08-21  Stephane Delcroix  <sdelcroix@novell.com>
151
152         * WebClient_2_1.cs: set the address on OpenReadCompletedEventArgs
153         ctor.
154
155 2008-08-21  Stephane Delcroix  <sdelcroix@novell.com>
156
157         * WebClient_2_1.cs: enable the DownloadStringAsync code
158
159 2008-08-19  Geoff Norton  <gnorton@novell.com>
160
161         * WebClient_2_1.cs: Keep a reference to the tick callback until its completed.
162
163 2008-08-18  Geoff Norton  <gnorton@novell.com>
164
165         * WebRequest_2_1.cs: Set a delegate callback for BrowserHttpWebRequest
166         to update progress.
167         * WebClient_2_1.cs: Refactor the OnDownloadedChanged method, as its already
168         emitting on the right thread.  Clean up the OnOpenReadCompleted method.
169         Set a delegate callback for BrowserHttpWebRequest to updated Progress.
170
171 2008-08-17  Geoff Norton  <gnorton@novell.com>
172
173         * WebRequest_2_1.cs: We support relative URI's now.
174
175 2008-08-14  Geoff Norton  <gnorton@novell.com>
176
177         * WebClient_2_1.cs: A dirty hack to emit the events on the proper thread
178         until we can figure out exactly how to leverage Dispatcher over here.
179
180 2008-06-18  Stephane Delcroix  <sdelcroix@novell.com>
181
182         * WebRequest_2_1.cs: Load BrowserHttpWebRequest from the right assembly
183
184 2008-06-10  Stephane Delcroix  <sdelcroix@novell.com>
185
186         * DnsEndPoint_2_1.cs: embed an IPAddress and rely on IPEndPoint
187         for serialization.
188
189 2008-06-04  Stephane Delcroix  <sdelcroix@novell.com>
190
191         * DnsEndPoint_2_1.cs: new DnsEndPoint class for SL2b1
192
193 2008-04-13  Jb Evain  <jbevain@novell.com>
194
195         * *_2_1.cs: move the specific 2.1 System.Net code to the
196         assembly System.Net.