2006-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web / ChangeLog
1 2006-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * HttpWriter.cs: made Write (char) less memory hungry. Thanks to Mike
4         Glenn for pointing this out.
5
6 2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7
8         * HttpApplicationFactory.cs: fix condition for ContextAvailable.
9
10 2006-01-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
11
12         * HttpResponse.cs: removed TARGET_JVM block from End
13         * GetJavaTextReader: Merged TARGET_JVM block from LoadFile
14         to GetJavaTextReader
15
16 2006-01-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
17
18         * HttpRequest.cs: removed TARGET_JVM block from MapPath
19
20 2006-01-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
21
22         * HttpRequest.cs: little fix in MapPath(), virtualPath.Replace
23         return value wasnt stored.
24
25 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26
27         * HttpResponse.cs: typo in comment.
28
29         * HttpApplicationFactory.cs:
30         * HttpApplication.cs: don't discard the application used for running the
31         Application_Start event to allow for Redirect/Transfer to be used. Fail
32         to get the request/response from the application object as MS does (it
33         can still be retrieved through HttpContext.Current.blah). Fixes
34         bug #77162.
35
36 2006-01-09  Vladimir Krasnov <vladimirk@mainsoft.com>
37
38         * CapabilitiesLoader.cs: Merged TARGET_JVM parts in LoadFile
39         from /main/9
40         * HttpException.cs: Merged TARGET_JVM parts in GetHtmlizedErrorMessage
41         from /main/13
42         * HttpRequest.cs: Merged TARGET_JVM parts in MapPath from /main/29
43         * HttpResponse.cs: Merged TARGET_JVM parts in End() from /main/30
44         * StaticFileHandler.cs: Merged TARGET_JVM parts in ProcessRequest
45         from /main/7
46
47 2006-01-08  Konstantin Triger <kostat@mainsoft.com>
48
49         * BrowserCapabilities.cs, HttpBrowserCapabilities.cs,
50         HttpResponseStream.cs: TARGET_JVM changes to let the compilation
51         pass with csc 1.1.
52
53 2006-01-04  Chris Toshok  <toshok@ximian.com>
54
55         * HttpContext.cs (IsCustomErrorEnabled): add CONFIGURATION_2_0
56         code.  use a nasty 'using' hack to map the 2.0 CustomErrorsMode to
57         the 1.x CustomErrorMode name.
58         (IsDebuggingEnabled): add CONFIGURATION_2_0 code.
59         (ConfigTimeout): add CONFIGURATION_2_0 code.
60
61         * HttpRequest.cs (MakeInputStream): add CONFIGURATION_2_0 code.
62
63         * HttpApplication.cs (RedirectCustomError): add CONFIGURATION_2_0
64         code.
65
66         * SiteMap.c (Init): use
67         WebConfigurationManager.GetWebApplicationSection.
68
69 2005-12-21  Miguel de Icaza  <miguel@novell.com>
70
71         * HttpUtility.cs (UrlEncodeUnicode): The generated encoding of
72         unicode values must be in %XXXX format, not %XX sometimes.
73
74 2005-12-08 Robert Jordan  <robertj@gmx.net> 
75
76         * MimeTypes.cs: added entry for "jpg".
77
78 2005-12-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
79
80         * HttpRequest.cs: only read up to content-length when provided. Patch
81         by Peter Teichman.
82
83 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
84
85         * HttpCookie.cs: fixed the set_Secure. Closes bug #76906.
86
87 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
88
89         * HttpResponseStream.cs: flush the filter stream before closing.
90         Patch by Geir Bergum that fixes bug #76753.
91
92 2005-11-28  Chris Toshok  <toshok@ximian.com>
93
94         * HttpContext.cs (Profile): remove the #if false from around this,
95         as we now have the ProfileBase type.
96         (GetConfig): add CONFIGURATION_2_0 version.
97         (GetSection): add CONFIGURATION_2_0 version.
98
99 2005-11-28  Chris Toshok  <toshok@ximian.com>
100
101         * TraceManager.cs (..ctor): CONFIGURATION_2_0 work.
102
103         * QueueManager.cs (..ctor): CONFIGURATION_2_0 work.
104
105         * HttpRequest.cs (AnonymousID): add 2.0 property.
106         (MakeInputStream): CONFIGURATION_2_0 work.
107
108         * HttpApplication.cs (InitOnce): change around the
109         CONFIGURATION_2_0 stuff since we need additional Culture foo for
110         it.
111
112 2005-11-27  Chris Toshok  <toshok@ximian.com>
113
114         * HttpApplication.cs (InitOnce): add Configuration_2.0 code.
115         (GetHandler): same.
116
117 2005-11-26  Miguel de Icaza  <miguel@novell.com>
118
119         * HttpResponseStream.cs: Do not try to write zero bytes.
120
121 2005-11-24  Miguel de Icaza  <miguel@novell.com>
122
123         * WebROCollection.cs: Do not add an empty "=" to the query string
124         if the key is empty or null.
125
126 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
127
128         * WebROCollection.cs: override ToString and generate a query string from
129         the key/value pairs. Fixes bug #76779.
130
131 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
132
133         * HttpServerUtility.cs: prevent possible nullref in GetLastError().
134
135 2005-11-07  Jason Diamond  <jason@diamond.name>
136
137         * HttpRequest.cs: Don't throw exception when Content-Length doesn't
138         match length of POSTed data. Also, allow charset parameter on
139         Content-Type header when type is "application/x-www-form-urlencoded".
140
141 2005-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
142
143         * WebROCollection.cs: add an ID for the collection. Page needs it.
144
145 2005-11-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
146
147         * HttpRequest.cs: no need to allocate the buffer when all the content
148         is preloaded.
149
150 2005-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
151
152         * HttpApplication.cs: ignore TAE in ProcesssError. The Error event might
153         redirect or transfer and that causes a TAE to be thrown. Fixes
154         bug #76573.
155
156 2005-11-01  Chris Toshok  <toshok@ximian.com>
157
158         * VirtualPathUtility.cs: new (partial implementation) to get some
159         MS provider examples compiling.
160
161 2005-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
162
163         * HttpContext.cs: added a new internal overload for ClearError.
164
165 2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
166
167         * HttpRuntime.cs: invoke callbacks on private items in the cache before 
168         calling disposing the app. factory. This way we get notifications of
169         removal for all sessions stored in the cache (InProc only).
170
171 2005-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
172
173         * HttpResponseStream.cs: reworked buffering so that adjacents blocks are
174         written at once. Also fix bug #76460.
175
176 2005-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
177
178         * HttpResponseStream.cs: when allocating a chunk larger than the
179         default chunk size, mark all the blocks as taken. Fixes bug
180         #76452.
181
182 2005-10-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
183
184         * HttpResponse.cs: use HaveFilter instead of Filter.
185         * HttpResponseStream.cs: allocate chunks of the requested size
186         when it's > 32KB. Fixes bug #76460.
187
188 2005-10-14  Sebastien Pouliot  <sebastien@ximian.com> 
189
190         * ServerVariablesCollection.cs: Added a demand for 
191         SerializationFormatter on GetObjectData method (even if it's not 
192         really required in this case as it remove warnings from gendarme.
193
194 2005-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
195
196         * HttpResponse.cs:
197         * HttpRequest.cs: buglets in error checking in Filter.
198
199 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
200
201         * OutputFilterStream.cs: proxy class for response filters.
202         * HttpResponse.cs: moved all the actual write operations into the
203         response stream. Handle response filtering. When caching, get the
204         actual length of the data, not the buffer length.
205         * HttpApplication.cs: if there's no error, invoke the filters before
206         updating the request cache.
207         * HttpResponseStream.cs: new Filter property. SendChunkSize is moved
208         here and now supports writing the final chunk. New method ApplyFilter
209         that filters the existing buckets and replaces them with the filtered
210         ones. Modified Write to deal with buffering and filtering.
211
212 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
213
214         * HttpResponseStream.cs: allow for writes of more than 32K at once.
215
216 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
217
218         * InputFilterStream.cs proxy stream for use by filters.
219         * HttpRequest.cs: implement input filtering.
220
221 2005-10-02 Eyal Alaluf <eyala@mainsoft.com>
222         * HttpApplication.jvm.cs - Workaround for use of yield in
223         HttpApplication.cs HttpRuntime.cs: AppDomain.Unload is not supported
224         * under TARGET_J2EE
225
226 2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
227
228         * HttpResponseStream.cs: remove dead code.
229
230 2005-09-29  Sebastien Pouliot  <sebastien@ximian.com> 
231
232         * HttpClientCertificate.cs: Remove last TODO on IsValid. This now 
233         works when using XSP. Now use flags to determine valid/presence.
234
235 2005-09-26  Chris Toshok  <toshok@ximian.com>
236
237         * HttpApplicationFactory.cs (OnAppFileChanged): add null checks
238         for bin_watcher and app_file_watcher so we don't get NRE's here.
239
240 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
241
242         * BrowserCapabilities.cs: don't rely on the win32 attribute to be there.
243         Just use the platform to determine whether Win32 is true or not. Fixes
244         bug #74777.
245
246 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
247
248         * HttpApplication.cs: fixed typo when setting UI culture. Closes bug
249         #76189.
250
251 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
252
253         * HttpRequest.cs: new SetFilePath() that does not conflict with
254         SetCurrentExePath. Now when transfering from a page to another,
255         CurrentExecutionFilePath and FilePath are correct.
256
257 2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
258
259         * TraceContext.cs: add new method to store size of controls.
260         * TraceData.cs: render control size.
261         * HttpResponse.cs: new internal method to get the number of bytes of
262         buffered output.
263         * HttpResponseStream.cs: added Length property to the Buckets and new
264         GetTotalLength.
265
266 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
267
268         * TraceData.cs: we have to change the method of getting a control render
269         size. MS does not do this or otherwise would run into the same bug
270         (#76051) that this patch fixes. This is temporarily setting the size
271         to 0.
272
273 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
274
275         * HttpResponseStream.cs: implemented Send(stream) for files. Fixes bug
276         #76145.
277
278 2005-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
279
280         * HttpRuntime.cs: catch errors when compiling global.asax and
281         initializing the application. Fixes bug #76090.
282
283 2005-09-14  Sebastien Pouliot  <sebastien@ximian.com> 
284  
285         * BrowserCapabilities.cs: Fixed changes (in 2.0) with versions. Fixed
286         compare with "True" (culture and case sensitivity).
287         * HttpApplicationState.cs: Added LinkDemand for Minimal. Use the 
288         internal HttpStaticObjectsCollection ctor to avoid the UnmanagedCode
289         demand.
290         * HttpContext.cs: Added LinkDemand for Minimal. Added 2.0 properties
291         and methods to test CAS on them.
292         * HttpRequest.cs: Added LinkDemand for Minimal. Ensure we return 
293         proper values when worker_request is null.
294         * HttpResponse.cs: Added LinkDemand for Minimal. Ensure we return 
295         proper values when context or WorkerRequest is null. Added 2.0 
296         properties and methods to test CAS on them.
297         * HttpRuntime.cs: Added LinkDemand for Minimal. Added PathDiscovery 
298         demands for properties returning directories. Added demand for High 
299         level on AppDomainAppId and AppDomainId properties, Low level on 
300         IsOnUNCShare, Medium level on ProcessRequest and a demand for 
301         UnmanagedCode on UnloadAppDomain method. Constructor also has a 
302         UnmanagedCode demand for 1.x.
303         * HttpStaticObjectsCollection.cs: Added LinkDemand for Minimal. Added
304         a UnmanagedCode demand to public ctor. Added internal ctor without the
305         demand. Changed Serialize and Deserialize methods to public for 2.0.
306
307 2005-09-14  Sebastien Pouliot  <sebastien@ximian.com>
308
309         * HttpWorkerRequest.cs: Removed TODO for 2.0 APIs and return the 
310         default values for them.
311
312 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
313
314         * HttpApplication.cs: : Added LinkDemand and InheritanceDemand (class)
315         for Minimal. Changed AssemblyLocation to a property (so it doesn't 
316         require special permission, PathDiscovery) to create an instance. 
317         Protected Modules property with a Demand for High level. Added some 
318         missing HttpException for null context.
319         * HttpServerUtility.cs: Added LinkDemand for Minimal. Added demands 
320         for UnmanagedCode on all CreateObject* methods. Added demand for 
321         Medium level on MachineName and ScriptTimeout properties. Added new
322         overloaded Transfer method (2.0) to test CAS on it.
323         * HttpUtility.cs: Added LinkDemand for Minimal. Added [Obsolete] to 
324         ctor (2.0). Changed some return values when 'count' is 0. Added 
325         ParseQueryString (overload) methods for 2.0 (to enabled CAS testing on
326         them).
327         * HttpWorkerRequest.cs: Added LinkDemand and InheritanceDemand (class)
328         for Minimal. Added RequestTraceIdentifier and RootWebConfigPath (2.0) 
329         properties, GetPreloadedEntityBody, GetPreloadedEntityBodyLength, 
330         GetTotalEntityBodyLength and ReadEntityBody (2.0) methods to test CAS 
331         on them. Fixed SendResponseFromMemory to ignore IntPtr.Zero (used in 
332         tests without failures).
333         * ServerVariablesCollection.cs: Fixed loadServerVariablesCollection 
334         when HttpWorkerRequest is null.
335         * TraceContext.cs: Added LinkDemand for Minimal. Fixed default Mode 
336         (SortByTime). Added new (2.0) TraceFinished event to test CAS on it.
337
338 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com> 
339  
340         * HttpBrowserCapabilities.cs: Added LinkDemand and InheritanceDemand 
341         (class) for Minimal. Note that current MCS has problem compiling 
342         security attributes on partial class (bug #75969).
343         * HttpCachePolicy.cs: Added LinkDemand for Minimal. Added 2.0 methods
344         (stub) to enable CAS tests on them.
345         * HttpCacheVaryByHeaders.cs: Added LinkDemand for Minimal.
346         * HttpCacheVaryByParams.cs: Added LinkDemand for Minimal.
347         * HttpClientCertificate.cs: Added LinkDemand and InheritanceDemand 
348         (class) for Minimal.
349         * HttpCookie.cs: Added LinkDemand for Minimal.
350         * HttpCookieCollection.cs: Added LinkDemand for Minimal.
351         * HttpFileCollection.cs: Added LinkDemand for Minimal.
352         * HttpModuleCollection.cs: Added LinkDemand for Minimal.
353         * HttpPostedFile.cs: Added LinkDemand for Minimal.
354         * HttpRequestPriority.cs: Fix enum values.
355         * HttpWriter.cs: Added LinkDemand for Minimal.
356
357 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
358
359         * ProcessInfo.cs: Added LinkDemand and InheritanceDemand (class) for
360         Minimal.
361         * ProcessModelInfo.cs: Added LinkDemand and InheritanceDemand (class)
362         for Minimal. Methods GetCurrentProcessInfo and GetHistory are also
363         protected by Demand for High level.
364
365 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com> 
366  
367         * HttpCompileException.cs: Added new public ctors and [Serializable]
368         to 2.0. Added new Message property and GetObjectData (protected by a
369         demand for SerializationFormatter) for 2.0. Fixed line-ending.
370         * HttpException.cs: Added LinkDemand and InheritanceDemand (class) for
371         Minimal. Renamed parameters to match documentation.
372         * HttpParseException.cs: Added LinkDemand (class) for Minimal. Added
373         demand for SerializationFormatter on GetObjectData method. Fixed 
374         line-ending.
375         * HttpRequestValidationException.cs: Added new public ctors and 
376         [Serializable] to 2.0. Added LinkDemand for Minimal.
377         * HttpUnhandledException.cs: Added new public ctors and [Serializable]
378         to 2.0. Removed unused internal ctor. Added LinkDemand for Minimal.
379         Fixed line-ending.
380
381 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
382
383         * HttpResponseSubstitutionCallback.cs: New. 2.0 delegate.
384         * TraceContextEventArgs.cs: New. 2.0 class.
385         * TraceContextEventHandler.cs: New. 2.0 delegate.
386
387 2005-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
388
389         * HttpRequest.cs: use GetServerName instead of GetLocalAddress when
390         building the Url.
391
392 2005-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
393
394         * HttpRequest.cs: fix the indexer.
395
396 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
397
398         * HttpPostedFile.cs: fixes in Seek and Position.
399
400 2005-09-08  Sebastien Pouliot  <sebastien@ximian.com>
401
402         * HttpRequest.cs: Make sure the MemoryStream created have their 
403         contents marked as public - or else you can't call GetBuffer on them!
404
405 2005-09-08  Miguel de Icaza  <miguel@novell.com>
406
407         * HttpRequest.cs: Patch from Juraj Skripsky <js@hotfeet.ch> that
408         fixes UrlReferrer. 
409
410 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
411
412         * HttpPostedFile.cs: Make this class actually work. Every time we read,
413         we have to position the underlying stream.
414
415 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
416
417         * HttpRequest.cs: reading multipart/form-data works again.
418
419 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
420         * HttpRequest.cs: Under TARGET_JVM the input stream must allow GetBuffer.
421
422 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
423         * HttpApplicationFactory.cs: TARGET_J2EE/JVM fix.
424
425 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
426
427         * HttpRequest.cs: correctly detect multipart/form-data.
428
429 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
430
431         * HttpApplicationFactory.cs: recycle after invoking session_end.
432
433 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
434
435         * HttpRuntime.cs: remove Console.
436
437         * HttpApplicationFactory.cs: don't hook Session_End, but keep
438         the MethodInfo around for later invocation if needed. Don't call
439         GetMethods() for every HttpApplication (or derived class) instances.
440         Added a method, used by SessionStateModule, that will create use an
441         application without context to invoke Session_End. Keep a pool of
442         applications that are meant to be used by this method only.
443
444         * HttpApplication.cs: add a SetSession method and do not
445         attach all the events if the application is for Session_End only.
446
447 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
448
449         * HttpRuntime.cs: actually unload the domain when requested. Reformatted
450         FinishUnavailable() and removed the 'Location' header form the error.
451
452         * HttpApplicationFactory.cs: set up the watcher for the bin directory.
453         This also prevents a nullref when global.asax is changed.
454
455 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
456
457         * HttpApplication.cs: fixed bug introduced when moving GetHandler call
458         around. Now we get error pages again.
459
460 2005-09-06  Miguel de Icaza  <miguel@novell.com>
461
462         * HttpApplication.cs: Catch EndRequest errors as well.
463
464 2005-09-05  Miguel de Icaza  <miguel@novell.com>
465
466         * HttpApplication.cs: Invoke EndRequest handler before OutputPage
467         as FormsAuthentication will issue a Redirect from the EndRequest 
468         handler. 
469
470 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
471
472         * HttpApplication.cs: when writing an error message, catch the possible
473         write error.
474
475 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
476
477         * HttpResponseStream.cs: prevent invalid cast exception if the first
478         thing written is a file.
479
480 2005-09-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
481
482         * HttpApplication.cs: fix invalid cast exception (bug #75926).
483
484 2005-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
485
486         * HttpApplicationFactory.cs: only trigger the Application_Start event
487         once. It was being invoked more than once when several clients were
488         hitting the server at the same time on startup.
489
490 2005-09-01 Eyal Alaluf <eyala@mainsoft.com>
491
492         * HttpContext.cs HttpResponse.cs HttpWorkerRequest.cs HttpRuntime.cs
493           HttpApplicationFactory.cs HttpApplication.cs: TARGET_J2EE/JVM fixes.
494           Mostly workaround limited AppModel in TARGET_J2EE.
495
496 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
497
498         * HttpResponse.cs: if the request method is HEAD, that's equivalent to
499         SuppressContent. Added an internal TransmitFile that allows setting the
500         final_flush flag.
501         * StaticFileHandler.cs: use the new internal TransmitFile and remove
502         generation of Content-Length header, as now it's computed correctly.
503         * HttpApplication.cs: remove debugging stuff.
504         * HttpResponseStream.cs: suppress_content is checked in HttpResponse.
505
506 2005-08-31  Miguel de Icaza  <miguel@novell.com>
507
508         Removed debugging info.
509         
510         * HttpApplication.cs: Add support for async handlers. 
511
512         Add extra 2.x methods. 
513
514 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
515
516         * BrowserCapabilities.cs: removed extra 'using'.
517
518         * HttpApplication.cs: use just the 'modcoll' to hold the collection of
519         modules instead of having a separate 'modules' one.
520
521 2005-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
522
523         * HttpApplication.cs: clone the module collection so that
524         it's not shared between HttpApplications. Call GetHandler() in the
525         right place.
526
527 2005-08-30  Miguel de Icaza  <miguel@novell.com>
528
529         * HttpApplication.cs: Add the new 2.x method overloads that take a
530         data object.
531
532         (RunHooks): Pass the extra data instead of null.
533
534         * HttpCookie.cs (HttpOnly): Add 2.x cookie header.
535
536         * BrowserCapabilities.cs: Move the core of the capabilities into a
537         separate file.  Use partial classes to choose what version to
538         compile against.
539
540         * HttpBrowserCapabilities.cs: Update to move the code elsewhere.
541
542 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
543
544         * HttpResponseStream.cs: Fix a bug introduced by last fix (thanks to
545         Ben)
546
547 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
548
549         * HttpResponseStream.cs: Compilation fixes for TARGET_JVM. TARGET_JVM
550         does not support unsafe code. I localized all unsafe code within Chunk
551         & Block and created a managed version of Chunk.
552
553 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
554         * HttpApplicationFactory.cs: Compilation fixes for TARGET_J2EE. Under
555         TARGET_J2EE static fields are shared by all app domains. We handle
556         this difference by explicitly getting/setting values from the app
557         domain.  Since HttpApplicationFactory has many static fields, I
558         refactored it to have one static instance and moved the static fields
559         into instance fields.
560
561 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
562
563         * HttpRequest.cs: Disable use of IntPtrStream for TARGET_JVM
564
565 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
566
567         * HttpContext.cs: Compilation fixes for TARGET_J2EE/JVM
568
569 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
570
571         * HttpResponse.cs: don't duplicate the 'charset=' and don't send a
572         charset for unknown MIME types.
573         * StaticFileHandler.cs: set the Content-Length header here.
574         * HttpRequest.cs: prevent nullrefs when we have no 'charset='.
575
576 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
577
578         * StaticFileHandler.cs: use TransmitFile instead of WriteFile. This way
579         xsp will use sendfile().
580
581 2005-08-28  Chris Toshok  <toshok@ximian.com>
582
583         * SiteMapNode.cs: fix IHierarchyData.GetParent.
584
585 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
586
587         * HttpRequest.cs:
588         * IntPtrStream.cs: now we only have a read-only MemoryStream or an
589         IntPtrStream. The copy is moved into HttpRequest.
590
591 2005-08-26  Sebastien Pouliot  <sebastien@ximian.com>
592
593         * WebCategoryAttribute.cs: New. Required internal attribute.
594         * WebSysDescriptionAttribute.cs: New. Required internal attribute.
595
596 2005-08-26  Jackson Harper  <jackson@ximian.com>
597
598         * HttpResponseStream.cs: Use GetBuffer so the memory isn't
599         duplicated.
600
601 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
602
603         * HttpApplication.cs: GetHandler might return null when, for example,
604         a web service fails, but that does not mean that returning a null
605         handler should throw another exception, as the web service code
606         serialized the error as a faultString. So if the handler is null, just
607         don't call ProcessRequest and keep going.
608
609 2005-08-26  Jackson Harper  <jackson@ximian.com>
610
611         * HttpResponse.cs: Send the cached headers if this is a cached
612         response. Save the headers, date header, and page data. Fix a typo.
613         * HttpResponseStream.cs: Add new accesor to get a byte [] of the
614         page data.
615
616 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
617
618         * HttpWorkerRequest.cs: SetEndOfSendNotification is a noop. No matter
619         what callback you use that never gets called. In XSP I actually
620         implement something for this method.
621         * HttpServerUtility.cs: unused variable.
622
623 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
624
625         * HttpInputStream.cs: new ctor that takes a byte [].
626         * IntPtrStream.cs: make it work on a byte [] too.
627
628         * HttpRequest.cs:
629         (ContentLength): return 0 for negative numbers or error parsing, but
630         keep content_length negative in those cases.
631         (MakeInputStream): when there's no content-length (or it's negative),
632         we still read the request into a MemoryStream. Use
633         IsEntireEntityIsPreloaded() as a fast path.
634
635 2005-08-25  Sebastien Pouliot  <sebastien@ximian.com>
636
637         * HttpClientCertificate.cs: On 1.x the .ctor throws a 
638         ArgumentNullException (but 2.0 throws a NRE).
639
640 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
641
642         * HttpRequest.cs: HttpMethod deserves its own field. Fix IsLocal.
643
644 2005-08-25  Chris Toshok  <toshok@ximian.com>
645
646         * HttpApplication.cs (IsReusable): return true.
647         (InitOnce): remove the initialization of handler_factory from
648         here.
649         (GetHandler) and move it here, so we make sure to load handlers
650         from all needed web.config files.
651
652 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
653
654         * HttpServerUtility.cs: use GetHandler().
655         * HttpApplication.cs: remove obsolete method. Now Transfe/Execute work.
656
657 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
658
659         * HttpApplication.cs: no need for the local var. here.
660
661 2005-08-25  Chris Toshok  <toshok@ximian.com>
662
663         * HttpApplication.cs (InitOnce): move the initialization of
664         modules above the call to HttpApplicationFactory.AttachEvents,
665         since that method accesses HttpApplication.Modules.  Fixes
666         nGallery.
667         (IsReusable): mark TODO.
668
669 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
670
671         * HttpResponseHeader.cs: removed obsolete class.
672         * HttpResponse.cs: no more 'obsolete' warnings.
673
674 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
675
676         * HttpRuntime.cs: implemeted some missing properties.
677
678 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
679
680         * HttpResponse.cs: implemented RemoveOutputCacheItem().
681
682 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
683
684         * HttpApplication.cs: implemented GetVaryByCustomString().
685
686 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
687
688         * HttpRequest.cs: implemented SetHeader (allows adding a header
689         circumventing the read-only protection of the collection) and SetForm,
690         which just assigns a value of the 'form' collection.
691         * HttpServerUtility.cs: NameValueCollection -> WebROCollection.
692
693 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
694
695         * HttpContext.cs:
696         * HttpRequest.cs: implemented RewritePath and supporting methods.
697
698 2005-08-22  Sebastien Pouliot  <sebastien@ximian.com>
699
700         * HttpRequest.cs: Avoid NRE if work_request if null in the ctor.
701         * HttpResponse.cs: Avoid NRE if work_request if null in the ctor.
702
703 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
704
705         * HttpApplication.cs: if there's any exception thrown when getting the
706         handler, don't add an extra error to the context, as we already have
707         one.
708
709 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
710
711         * HttpWriter.cs:
712         * HttpResponse.cs:
713         * HttpWorkerRequest.cs:
714         * HttpApplication.cs: added mising attributes and enabled methods
715         present in 1.1 SP1.
716
717 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
718
719         * WebROCollection.cs: a collection that allows setting IsReadOnly.
720         * HttpRequest.cs: implemented MapImageCoordinates(). Use WebROCollection
721         instead of a NameValueCollection in Form, Headers, Params, QueryString.
722
723 2005-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
724
725         * HttpInputStream.cs: new copy ctor.
726         * IntPtrStream.cs: getters for base_address and size.
727         * HttpRequest.cs: implemented SaveAs(). Use a wrapper on top of
728         InputStream so that reading POST form or files does not modify the state
729         if InputStream. Don't use uri_builder.Query in QueryStringRaw, as it
730         returns the '?'.
731
732 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
733
734         * HttpRequest.cs: implemented UserLanguages and reuse code from
735         AcceptTypes.
736
737 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
738
739         * HttpRequest.cs: implemented AcceptTypes.
740
741 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
742
743         * HttpRequest.cs: implemented this[] in terms of Params. Don't add the
744         header collection in Params.
745
746 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
747
748         * HttpRequest.cs: fix Files property.
749         * HttpApplication.cs: invoke the default authentication event after all 
750         the other auth. modules.
751
752 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
753
754         * ServerVariablesCollection.cs: mark the collection as read-only except
755         when we fill it. Add the HTTP_blah key/value pairs too.
756
757 2005-08-18  Chris Toshok  <toshok@ximian.com>
758
759         * HttpRequest.cs (get_Params): implement.
760
761 2005-08-17  Chris Toshok  <toshok@ximian.com>
762
763         * HttpResponse.cs: HttpResponse's Cookie's collection acts
764         differently than HttpRequests in that it never returns null from
765         the "this [string]" accessor.
766
767 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
768
769         * HttpRequest.cs: check length 0 case when reading a POST.
770
771 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
772
773         * HttpContext.cs: added security attributes for User and
774         SkipAuthorization properties.
775         * HttpApplicationFactory.cs: AttachEvents is now called form the
776         application .ctor. Recycle instead of dispose.
777         * HttpApplication.cs: attach events to the newly created application.
778
779 2005-08-15  Jackson Harper  <jackson@ximian.com>
780
781         * ApplicationShutdownReason.cs: make build
782
783 2005-08-15  Miguel de Icaza  <miguel@novell.com>
784
785         * HttpApplication.cs: Update comments
786
787         * HttpPostedFile.cs: Use a substream to read from the uploaded
788         multiparts. 
789
790         * HttpRequest.cs: use new code to read the uploaded files.
791
792 2005-08-12  Miguel de Icaza  <miguel@novell.com>
793
794         2.x API fixage and small additions:
795         
796         * HttpResponse.cs: Make constructor internal.
797
798         * HttpRequest.cs (IsLocal): Expose if NET_2.x
799
800         * HttpContext.cs: Remove internal routine.
801
802         * HttpApplication.cs: Add 2.x events. 
803
804         * HttpRequest.cs: Another iFolder issue: I was not setting up the
805         uri_builder here.
806
807         Fixes to get iFolder to work:
808         
809         * HttpApplicationFactory.cs: Set the context when we are initting
810         the application.
811
812         * HttpApplication.cs (SetContext): helper routine. 
813
814         * HttpResponse.cs: Implement the various cache operations:n
815         Expires, ExpiresAbsolute, CacheControl.
816
817         Actually produce the Cache-Control header, the "Cache" property
818         takes precedence over the compatibility settings (Expires,
819         ExpiresAbsolutely and CacheControl). 
820
821         * HttpCachePolicy.cs: Fix style.
822
823         Fix the generation of the headers, use lower-case values, do not
824         add the max-value if the value is zero.  
825
826         Allow for all possible values in SetCacheability. 
827
828         * HttpRuntime.cs (ClrInstallDirectory): Implement.
829
830         * HttpResponseStream.cs: Remove debugging stuff. 
831
832 2005-08-11  Miguel de Icaza  <miguel@novell.com>
833
834         Big chunked handling rewrite, and integration of Ben's unmanaged
835         output stream.
836
837         * HttpWriter.cs: Delegate chunked encoding writing to the
838         HttpResponse. 
839
840         * HttpResponse.cs: Rework the chunked encoding system, centralize
841         it all. 
842
843         * HttpResponseStream.cs: Deploy Ben's bucket-base unmanaged
844         buffers code. 
845
846         Changed the way that we handle chunked encoding, centralize it
847         all;  
848
849         Remove a lot of manual handling of buffering turned off, and
850         instead delegate it all to Flush, fixes several issues with the
851         new framework.
852
853         * HttpWorkerRequest.cs (SendResponseFromMemory (IntPtr, int)):
854         Provide a default implementation since currently XSP does not have
855         this method implemented. 
856
857 2005-08-11  Sebastien Pouliot  <sebastien@ximian.com> 
858  
859         * HttpClientCertificate.cs: Culture insensitive int parsing. Fixed
860         NET_2_0 build.
861
862 2005-08-10  Miguel de Icaza  <miguel@novell.com>
863
864         * ServerVariablesCollection.cs: For Ben.  Implement the header
865         fetching here, do not implement it in HttpRequest.cs.
866
867 2005-08-10  Sebastien Pouliot  <sebastien@ximian.com> 
868  
869         * HttpClientCertificate.cs: Changed IsPresent logic so that new unit
870         tests will work as expected.
871
872 2005-08-10  Sebastien Pouliot  <sebastien@ximian.com>
873
874         * HttpClientCertificate.cs: Implemented, except for validation. Note 
875         that the HttpWorkerRequest derived classes must be updated to supply 
876         the required informations.
877         * HttpRequest.cs: Create an HttpClientCertificate on first call to
878         ClientCertificate.
879
880 2005-08-09  Miguel de Icaza  <miguel@novell.com>
881
882         * HttpRuntime.cs (AspInstallDirectory): Implement.
883
884 2005-08-09  Sebastien Pouliot  <sebastien@ximian.com>
885
886         * HttpClientCertificate.cs: New. Stub. It won't be fun to test.
887
888 2005-08-04  Ben Maurer  <bmaurer@ximian.com>
889
890         * HttpContext.cs: Kill a NIE.
891
892 2005-08-04  Miguel de Icaza  <miguel@novell.com>
893
894         * HttpApplicationFactory.cs: Change "Start" event like the "End"
895         event, and only do this once, when we init the type.
896
897         Fire the "Application_Start" event after we create the type.
898
899 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
900
901         * HttpApplication.cs: catch a ThreadAbort (coming from Response.End)
902         here too.
903
904 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
905
906         * HttpResponse.cs: setting the Status property resets the
907         StatusDescription (see the tests) and the default value for the
908         description is the one provided by GetStatusDescription() in
909         HttpWorkerRequest.
910
911 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
912
913         * HttpRequest.cs: s/boundry/boundary/ and fix typo in array creation.
914
915 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
916
917         * HttpApplication.cs: add call to EndOfRequest when everything is said
918         and done.
919
920 2005-08-02  Miguel de Icaza  <miguel@novell.com>
921
922         * HttpResponse.cs: Stub for TransmitFile.
923
924         * HttpRequest.cs (IsAuthenticated): Implement.
925
926 2005-08-01  Miguel de Icaza  <miguel@novell.com>
927
928         * HttpRequest.cs: Cope with implementations of HttpWorkerRequest
929         (unpatched xsp) that do not send back the PreloadedEntityBody. 
930
931         * HttpApplication.cs: keep track of the factory. 
932         (Dispose): Only dispose once, clean up other variables, release
933         the ManualResetEvent.
934         Release the handler to the factory.
935
936         * HttpApplicationFactory.cs: Implement a stack to reuse the
937         applications. 
938
939         * HttpRequest.cs: On uploads, if the ContentLenght is zero, throw
940         a 411.
941
942         * HttpRuntime.cs: Recycle the application after using it.
943
944         * HttpPostedFile.cs: Implement SaveAs.
945
946         * HttpContext.cs: Return the "Server" property.
947
948 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
949
950         * HttpServerUtility.cs: implemented missing bits.
951
952 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
953
954         * HttpRequest.cs: query string was getting a '?' as the start of the
955         first variable name. This makes the asmx help page work again.
956
957 2005-08-01  Miguel de Icaza  <miguel@novell.com>
958
959         * HttpRequest.cs (Cookies, Forms): Add validation.
960         (Forms): Add application/x-www-form-urlencoded parsing and
961         multipart/form-data parsing.
962         
963         (HttpMultiPart): Implement new class to load multi-part data from
964         a stream since there is no longer a byte [] that holds the data
965         (currently we have an unmanaged IntPtr buffer wrapped as a
966         stream).  Also the 2.x framework will add support for large
967         uploads which are sent directly to disk, which will require the
968         FileStream interface. 
969         
970         (Path, PathInfo): Fill a couple more methods to avoid crashes.
971
972         * HttpContext.cs: Fill another one to get web services summary
973         page painting.  The page does not work though.
974         
975         * HttpApplication.cs: Rework the pipeline to not depend on
976         `finally', as `finally' would not be invoked if we choose not to
977         call the pipeline again (which happens if the `stop' variable is
978         set). 
979
980         Instead force the pipeline to go to the shutdown, and yield from
981         there after all the release-state callbacks have been invoked. 
982
983 2005-07-31  Miguel de Icaza  <miguel@novell.com>
984
985         * HttpApplication.cs: Remove debugging messages since the compiler
986         bug has been fixed.
987
988         You must use at least mcs from revision 47879 for the application
989         pipeline to work. 
990
991 2005-07-30  Miguel de Icaza  <miguel@novell.com>
992
993         * HttpContext.cs: Error handling methods.
994
995         * HttpResponse.cs: Trigger the last event.
996
997         * HttpRuntime.cs: Add queueing of the next request. 
998
999         * HttpApplication.cs: Deploy the new yield-based application
1000         pipeline, add error handling to the pipeline.
1001         
1002         * HttpApplication.cs (AsyncRequestState): Just use the done event
1003         from the parent.
1004
1005 2005-07-29  Miguel de Icaza  <miguel@novell.com>
1006
1007         * HttpResponseStream.cs, HttpRequest.cs: Fix bugs found by nunit.
1008
1009         * HttpApplication.cs: Fix a race condition. 
1010
1011         * HttpResponseStream.cs: Fix bug, send the size of the buffer that
1012         we have so far instead of the internal size of the buffer.   This
1013         will need work later to ensure we enforce the Content-Length
1014         maximum output size if set.
1015
1016         * ServerVariablesCollection.cs: This class now inherits from
1017         NameValueCollection, we should probably review what the middle
1018         class did, there are no dependencies on it.
1019
1020         I need to write tests to investigate if something is missing or
1021         has changed in this implementation. 
1022
1023 2005-07-27  Miguel de Icaza  <miguel@novell.com>
1024
1025         * HttpRequest.cs: No happy replies here, send a 411.
1026
1027 2005-07-27  Chris Toshok  <toshok@ximian.com>
1028
1029         * HttpResponseHeader.cs: remove spew.
1030         
1031 2005-07-27  Chris Toshok  <toshok@ximian.com>
1032
1033         * HttpResponseHeader.cs (HttpResponseHandler..ctor): use
1034         HttpWorkerRequest.GetKnownResponseHeaderName instead of
1035         GetKnownRequestHeaderName.  Fixes Response.Redirect until miguel's
1036         new HttpReponse is online.
1037
1038 2005-07-26  Miguel de Icaza  <miguel@novell.com>
1039
1040         * HttpResponse.cs: use_chunked is now a byte-array, if not null,
1041         we use it to hold the size of the chunked so we do not have to
1042         allocate many of these. 
1043         (SendSize): Helper routine to send the chunked headers.
1044         (BinaryWrite): First user of the chunked writer.
1045
1046         * HttpApplication.cs: Do not crash if they request a Server
1047         instance, but throw a NotImplementedException.
1048
1049         * HttpRequest.cs: fix a few problems exposed by the regression
1050         test suite.
1051
1052         * HttpRequest.cs (Cookies): use Chris' new constructor to get the
1053         cookies parsed.
1054
1055         : The big Uri rework: instead of using QueryString
1056         as the population mechanism, populate an UriBuilder from the
1057         various HttpWorkerRequest methods.
1058
1059         * HttpWorkerRequest.cs (GetProtocol): Implement in terms of
1060         IsSecure().
1061
1062         * HttpResponse.cs: Pointed by Ben, Write (null) is a nop instead
1063         of a crash.
1064
1065         * HttpContext.cs: Add a couple of properties to help the 2.x
1066         build.
1067         
1068         * HttpResponse.cs: Make ContentLength a long, add back support for
1069         session's app_path_mod.
1070         (ApplyAppPathmodifier): put back.
1071         (End): Pass a flag to abort so we can tell the exceptions appart
1072         in HttpApplication.
1073         (WriteHeaders): Send the HTTP status.
1074         (Redirect): Implement.
1075         (Write): Use the Output property to load writer when needed.
1076         
1077         * HttpRequest.cs (ctor): Temporary use of InitFromWR, will fix
1078         later. 
1079         (MakeInputStream): check content-length size, use routines to load
1080         the preloaded data, handle incomplete transfers.
1081         (Query): Do not insert null keys into the collection.
1082         (Url): implement.
1083         (UrlReferer): implement.
1084
1085         * HttpApplication.cs (RunHooks): Catch Thread.Abort, and call
1086         Thread.ResetAbort after each step.
1087
1088         Ensure that ReleaseState is called if we ever succeed in acquiring
1089         the state even if we have stopped the request pipeline.
1090
1091         Report file not found, directory not found.
1092
1093 2005-07-25  Miguel de Icaza  <miguel@novell.com>
1094
1095         * HttpCookieCollection.cs: Add expiration of the cookie. 
1096
1097         * HttpRequest.cs: Add check for ContentLength, use
1098         GetPreloadedEntityBody, correct number of bytes uploaded.
1099
1100 2005-07-21  Miguel de Icaza  <miguel@novell.com>
1101
1102         * HttpResponseHeader.cs: Our implementation of HttpResponse only
1103         uses the text headers, does not use any constants as XSP would go
1104         through a slower code path anyways.
1105
1106 2005-07-21  Chris Toshok  <toshok@ximian.com>
1107
1108         * HttpBrowserCapabilities.cs: enable support for the W3CDomVersion
1109         and EcmaScriptVersion properties.
1110
1111 2005-07-21  Chris Toshok  <toshok@ximian.com>
1112
1113         * HttpResponseHeader.cs: hi, i'm stupid and missed String.Replace.
1114         
1115 2005-07-21  Chris Toshok  <toshok@ximian.com>
1116
1117         * HttpResponseHeader.cs: url encode just \r and \n if they're
1118         present in the value.
1119
1120 2005-07-20  Chris Toshok  <toshok@ximian.com>
1121
1122         * HttpPostedFile.cs: add missing ContentLength property.
1123
1124 2005-07-20  Chris Toshok  <toshok@ximian.com>
1125
1126         * HttpCookieCollection.cs: add a new ctor that takes a string (the
1127         contents of the Cookies: header).
1128
1129 2005-07-20  Chris Toshok  <toshok@ximian.com>
1130
1131         * HttpCookieCollection.cs: add another ctor (internal, but not
1132         obsolete, so we aren't passing a stupid HttpResponse in in order
1133         to change the behavior of the collection.)
1134
1135         * HttpCookie.cs: init this.values in the internal ctor.
1136
1137 2005-07-20  Chris Toshok  <toshok@ximian.com>
1138
1139         * HttpCookieCollection.cs: use "auto-fill mode" when we're dealing
1140         with an HttpResponse's cookie collection.  That is, create the
1141         cookie if the consumer looks it up.
1142
1143 2005-07-20  Miguel de Icaza  <miguel@novell.com>
1144
1145         * HttpApplication.cs: Ongoing work on pipeline, I will need to
1146         redo this later.
1147
1148 2005-07-19  Miguel de Icaza  <miguel@novell.com>
1149
1150         * HttpContext.cs (GetService): Implement.  Return all of the
1151         properties that we have access to.  Make HttpWorkerRequest the
1152         first match as this is the only likely reason people need to use
1153         this. 
1154
1155         * IntPtrStream.cs: Bring from corlib.
1156
1157         * MultiPartContentParser.cs: use a MemoryStream as HttpInputStream
1158         will now be using IntPtrStream. 
1159
1160         * HttpRequest.cs (MakeInputStream): move code that loads the
1161         request here
1162         (CloseInputStream): Helper method that we will call later to
1163         ensure that we dispose properly the malloced() block. 
1164         (BinaryRead): Implemented.
1165
1166         * HttpInputStream.cs: Rewrite to be a descendant of
1167         IntPtrStream.cs 
1168
1169 2005-07-18  Miguel de Icaza  <miguel@novell.com>
1170
1171         * HttpApplication.cs (Modules): Add modules support and
1172         AsyncResult.
1173
1174 2005-07-18  Chris Toshok  <toshok@ximian.com>
1175
1176         * HttpResponseHeader.cs: initial implementation.
1177
1178 2005-07-18  Chris Toshok  <toshok@ximian.com>
1179
1180         * HttpModuleCollection.cs (HttpModuleCollection.GetKey): add
1181         missing method.
1182
1183         * HttpFileCollection.cs: initial implementation.
1184
1185 2005-07-18  Chris Toshok  <toshok@ximian.com>
1186
1187         * HttpModuleCollection.cs (HttpModuleCollection.CopyTo): implement
1188         missing method.
1189
1190 2005-07-18  Chris Toshok  <toshok@ximian.com>
1191
1192         * HttpModuleCollection.cs: initial implementation.
1193
1194 2005-07-18  Chris Toshok  <toshok@ximian.com>
1195
1196         * HttpCacheVaryByHeaders.cs: only add the header if it's not
1197         already in the hash.
1198
1199         * HttpCacheVaryByParams.cs: only add the param if it's not already
1200         in the hash.
1201
1202 2005-07-18  Chris Toshok  <toshok@ximian.com>
1203
1204         * HttpCookie.cs (HttpCookie+CookieNVC.Set): new override to fix an
1205         MS quirk.
1206
1207 2005-07-17  Miguel de Icaza  <miguel@novell.com>
1208
1209         * HttpRequest.cs (Headers, InputStream): implemented two more
1210         properties.
1211
1212         * HttpInputStream.cs: All we need is a MemoryStream with writable
1213         set to false.
1214
1215         * HttpPostedFile.cs: Use a Stream.
1216
1217 2005-07-16  Chris Toshok  <toshok@ximian.com>
1218
1219         * HttpCacheVaryByHeaders.cs: make sure we set vary_by_unspecified
1220         = false in the custom setter.
1221
1222 2005-07-16  Chris Toshok  <toshok@ximian.com>
1223
1224         * HttpCacheVaryByParams.cs: initial implementation.
1225
1226 2005-07-16  Chris Toshok  <toshok@ximian.com>
1227
1228         * HttpCacheVaryByHeaders.cs: initial implementation.
1229
1230 2005-07-15  Chris Toshok  <toshok@ximian.com>
1231
1232         * HttpCookie.cs: one more time.
1233
1234 2005-07-15  Chris Toshok  <toshok@ximian.com>
1235
1236         * HttpCookie.cs (HttpCookie.GetCookieHeader): use
1237         expires.ToString().
1238         
1239 2005-07-15  Chris Toshok  <toshok@ximian.com>
1240
1241         * HttpCookie.cs (HttpCookie.GetCookieHeader): implement to fix
1242         ben's bug.
1243
1244 2005-07-15  Chris Toshok  <toshok@ximian.com>
1245
1246         * HttpCookieCollection.cs: initial implementation (with a couple
1247         of labeled inefficiencies.)
1248
1249 2005-07-15  Chris Toshok  <toshok@ximian.com>
1250
1251         * HttpCookie.cs (HttpCookie.get_HasKeys): use values.HasKeys()
1252         instead of trying to be smart about it ourselves.
1253
1254 2005-07-15  Chris Toshok  <toshok@ximian.com>
1255
1256         * HttpCookie.cs: initial implementation.  we fail one unit test,
1257         but it might be due to a bug in NameValueCollection.
1258
1259 2005-07-15  Miguel de Icaza  <miguel@novell.com>
1260
1261         * HttpRequest.cs: 
1262
1263 2005-07-14  Miguel de Icaza  <miguel@novell.com>
1264
1265         * HttpRuntime.cs: Return a few of the values from the AppDomain
1266         data. 
1267
1268         Put the application shutdown process.
1269
1270         * HttpApplicationFactory.cs (AddEvent): Fixed bug when more than
1271         one method existed.
1272         
1273         (FireEvent): Do not ignore errors.
1274
1275         * HttpContext.cs (GetAppConfig, GetConfig): First success, use
1276         ConfigurationSettings.GetConfig to get the value that QueueManager
1277         needed.
1278
1279 2005-07-14  Dick Porter  <dick@ximian.com>
1280
1281         * HttpPostedFile.cs: New basic implementation; needs someone to
1282         figure out what a HttpRequestStream does
1283
1284 2005-07-13  Miguel de Icaza  <miguel@novell.com>
1285
1286         * HttpRequest.cs: More work on this file
1287
1288         * HttpRequest.cs, HttpApplication.cs, HttpContext.cs,
1289         HttpRuntime.cs: New from scratch implementation.
1290
1291 2005-07-01  Lluis Sanchez Gual <lluis@novell.com>
1292
1293         * SiteMap.cs: Read provider info from the configuration files.
1294
1295 2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1296
1297         * HttpResponseHeader.cs: URL encode \r and \n in header values. Fixes
1298         bug #75392.
1299
1300 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1301
1302         * HttpUtility.cs: fix another stupid buglet in htmldecode.
1303
1304 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1305
1306         * HttpContext.cs:
1307         * HttpResponse.cs:
1308         * HttpRequest.cs: use StrUtils (invariant culture).
1309
1310 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1311
1312         * HttpRequest.cs: use StartsWith when looking for 'multipart/form-data'.
1313         File uploading was broken since a few commits ago.
1314
1315 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1316
1317         * HttpResponse.cs: ensure that the last chunk ('0\r\n\r\n') is sent
1318         even if response.Close is called before a final flush. MS/IIS fails to
1319         do this.
1320
1321 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1322
1323         * HttpRequest.cs: don't print anything for unknown content types in
1324         ParseFormData. Use lowercase compare.
1325
1326 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1327
1328         * HttpResponse.cs: invariant love.
1329
1330 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1331
1332         * HttpResponse.cs: avoid 1 string concat.
1333         * HttpRequest.cs: fix BinaryRead. It was totally wrong.
1334
1335 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1336
1337         * HttpUtility.cs: don't append an extra 0 when no digits seen. Fixes
1338         bug #75370.
1339
1340 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1341
1342         * HttpUtility.cs: the lower limit for using &#xx; encoding is 160, not
1343         128. Reset number back to 0 after use. Fixes bug #75365.
1344
1345 2005-06-19  Svetlana Zholkovsky <svetlanaz-at-mainsoft.com>
1346                 * In following classes added TARGET_J2EE or/and TARGET_JVM
1347                   directives:
1348                         - HttpResponse.cs
1349                         - HttpRuntime.cs
1350                         - HttpUtility.cs
1351                         - CapabilitiesLoader.cs
1352                         - HttpApplication.cs
1353                         - HttpApplicationFactory.cs
1354                         - HttpContext.cs
1355                         - HttpException.cs
1356                         - HttpRequest.cs
1357                 * Added Mainsoft's specific files :
1358                         - GhHttpAsyncResult.jvm.cs
1359
1360 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1361
1362         * HttpRequest.cs: avoid one intermediate buffer when reading the request
1363         body and fail for over limit content length when the content type is
1364         not handled as form or multipart data.
1365
1366 2005-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1367
1368         * HttpResponse.cs: fix the check in Close() so that CloseConnection is
1369         called even if there has been no final Flush. Fixes bug #75176.
1370
1371 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1372
1373         * HttpParseException.cs:
1374         * HttpResponse.cs:
1375         * HttpApplication.cs: updates for 1.1 service pack.
1376
1377 2005-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1378
1379         * HttpUtility.cs: fix InvalidCastException.
1380
1381 2005-06-05  Kornél Pál <kornelpal@hotmail.com>
1382
1383         * HttpWriter.cs: Fixed: _OutputFilter.Close () was called twice.
1384
1385 2005-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1386
1387         * HttpUtility.cs: modified HtmlDecode so that it does not need to call
1388         Int32.Parse and handles improper &# sequences. Fixes bug #74907.
1389
1390 2005-05-26  Lluis Sanchez Gual <lluis@novell.com>
1391
1392         * SiteMapNodeCollection.cs: Implemented missing methods. The collection
1393         does not inherit from CollectionBase any more.
1394         * SiteMapNode.cs: Track api changes.
1395         * SiteMapProvider.cs: Moved several methods to the new
1396         StaticSiteMapProvider class. Other fixes.
1397         * XmlSiteMapProvider.cs: Watch changes in the xml files. Other fixes.
1398         * SiteMapProviderCollection.cs: Minor fixes.
1399         * SiteMap.cs: Added missing event. Avoid double check lock.
1400         * StaticSiteMapProvider.cs: New class that implements some of the
1401         funtionality of SiteMapProvider.
1402
1403 2005-05-25  Ben Maurer  <bmaurer@ximian.com>
1404
1405         * MimeTypes.cs: Remove extra spaces, they were typos. Fixes 75049.
1406
1407 2005-05-13 Atsushi Enomoto <atsishi@ximian.com>
1408
1409         * HttpUtility.cs : UrlDecodeToBytes() incorrectly decoded escaped 
1410           characters. Patch by Kazuki Oikawa.
1411
1412 2005-05-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1413
1414         * HttpRuntime.cs: PlatformID.Unix.
1415
1416 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1417
1418         * HttpResponse.cs: cleaned up the .ctors, fix IsClientConnected and just
1419         Clear the _Headers array instead of creating a new ArrayList in
1420         ClearHeaders().
1421
1422 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1423
1424         * HttpResponse.cs: we had 2 variables to track client connection status.
1425         Use only one. Increase the buffer size to 28KB when writing from a file.
1426
1427         * StaticFileHandler.cs: set the Content-Type before writing the file.
1428         This allows flushing before all the content is written.
1429
1430         * HttpApplication.cs: use the variable instead of the property when
1431         setting the Principal for the current process.
1432
1433 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1434
1435         * ReusableMemoryStream.cs:
1436         * HttpWriter.cs: keep a pool of buffers to avoid allocations.
1437
1438 2005-05-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1439
1440         * HttpResponse.cs: no need to save/restore the thread culture when
1441         getting the Date header. According to Ben's profiling, this is a big
1442         deal in performance.
1443
1444         * HttpRuntime.cs: ignore exceptions that might be thrown when unloading 
1445         a domain.
1446
1447 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1448
1449         * HttpApplicationFactory.cs: ignore any exception thrown when invoking
1450         an application event.
1451
1452 2005-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1453
1454         * HttpBrowserCapabilities.cs: fix Win32 property.
1455
1456 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1457
1458         * HttpResponse.cs: only add the charset when explicitly set or for
1459         well-known content types.
1460
1461 2005-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1462
1463         * HttpCachePolicy.cs:
1464         * HttpAsyncResult.cs:
1465         * HttpClientCertificate.cs:
1466         * HttpException.cs:
1467         * HttpRuntime.cs:
1468         * HttpCacheVaryByHeaders.cs:
1469         * HttpBrowserCapabilities.cs:
1470         * HttpUtility.cs:
1471         * HttpCacheVaryByParams.cs: no more warnings.
1472
1473         * QueueManager.cs: check for local connections with minLocalFreeThreads.
1474
1475 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1476
1477         * ServerVariablesCollection.cs: shuffled variables, added missing ones
1478         and call a method in HttpRequest to set the HTTP_ variables.
1479
1480         * HttpRequest.cs: new method to add HTTP_ variables to a collection.
1481
1482 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1483
1484         * HttpRequest.cs: GetAllHeaders was returning the value twice instead
1485         of 'name: value'. When HTTP_ is requested on the output, don't include
1486         unknown headers.
1487
1488 2005-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1489
1490         * HttpCookieCollection.cs: when adding more than one cookie with the
1491         same name, the last one is the winner.
1492
1493 2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1494
1495         * HttpRequest.cs: correctly store the value cookies in Params. Fixes
1496         bug #73345.
1497
1498 2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1499
1500         * HttpRequest.cs: Path and FilePath also change when RewritePath is
1501         called. Fixes bug #73055.
1502
1503 2005-02-23  Sebastien Pouliot  <sebastien@ximian.com>
1504
1505         * HttpRequest.cs: Make sure that any access after a ValidateInput 
1506         throws an exception if the data isn't safe.
1507
1508 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1509
1510         * CapabilitiesLoader.cs: fix the path, as machine.config is now in a
1511         x.x/ directory below $PREFIX/etc/mono.
1512
1513 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1514
1515         * HttpRequest.cs: fail on unicode full-width '<' and '>' too. Fixes
1516         a security report (http://secunia.com/advisories/14325) that wan't
1517         reported to us before public disclosure.
1518
1519 2005-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1520
1521         * HttpResponse.cs: send the calculated content length even when it's 0.
1522         Fixes bug #72655.
1523
1524 2005-02-04  Lluis Sanchez Gual <lluis@novell.com>
1525
1526         * HttpContext.cs: Added internal property to keep a reference to
1527         the last accessed page. Page uses this to implement PreviousPage.
1528
1529 2005-02-02  Lluis Sanchez Gual <lluis@novell.com>
1530
1531         * ProcessModelInfo.cs: Fixed warning.
1532
1533 2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1534
1535         * TraceContext.cs: writing a message without any other argument is not
1536         a warniing. Fixes bug #72017.
1537
1538 2005-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1539
1540         * HttpApplication.cs: if there are no more handlers, finish the
1541         request and ensure we call Complete on it. Now FreeTextBox 3.0 works.
1542
1543 2004-12-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1544
1545         * HttpRequest.cs: honor the maxRequestSize limit from machine.config.
1546
1547 2004-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1548
1549         * HttpApplication.cs: reread application CultureInfo as web.config
1550         might have changed. Fixes bug #62539.
1551
1552 2004-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1553
1554         * HttpResponse.cs: fixed ApplyAppPathModifier to insert the session ID.
1555
1556 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1557
1558         * HttpApplicationFactory.cs: monitor changes in global.asax and bin
1559         directory and shutdown the application when that happens. Fixes bug
1560         #49651.
1561
1562 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1563
1564         * ReusableMemoryStream.cs: copied from System.IO.MemoryStream and
1565         slightly modified to allow expanding the buffer for cases on which the
1566         regular MemoryStream don't allow it.
1567
1568         * HttpWriter.cs: use the new ReusableMemoryStream and fix bug #59841.
1569         Otherwise we would have to allocate a new MemoryStream...
1570
1571 2004-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1572
1573         * HttpApplication.cs: Create() is now GetInstance().
1574
1575 2004-11-18 Lluis Sanchez Gual <lluis@novell.com>
1576
1577         * SiteMapNodeCollection.cs: Added missing properties.
1578         * HttpParseException.cs: Added 2.0 methods and properties.
1579         * SiteMapNode.cs: Added missing methods and properties.
1580         * SiteMapProvider.cs, XmlSiteMapProvider.cs, 
1581         SiteMapProviderCollection.cs: IProvider does not exist any
1582         more, it is now ProviderBase.
1583         * ISiteMapProvider.cs: Deleted.
1584         * ParserErrorCollection.cs, ParserError.cs, SiteMapResolveEventArgs.cs:
1585           Implemented.
1586         * SiteMap.cs: Minor fixes.      
1587
1588 2004-11-15 Lluis Sanchez Gual <lluis@novell.com>
1589
1590         * SiteMapProviderCollection.cs: Fixed warning.
1591         * HttpApplication.cs: Added new 2.0 events.
1592
1593 2004-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1594
1595         * HttpResponse.cs: added internl SetHeadersSent.
1596         * HttpRuntime.cs: don't throw the 'headers already sent' exception
1597         if we're sending a runtime error.
1598
1599 2004-11-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1600
1601         * HttpApplication.cs: undo the TimeoutManager.(Add|Remove) shuffling.
1602         It causes troubles under heavy load.
1603
1604 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1605
1606         * SiteMap.cs: don't lock on Type.
1607         * CapabilitiesLoader.cs: avoid 2 locks when loading data.
1608
1609 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1610
1611         * HttpRequest.cs: patch by Dennis Gervalle that fixes PhysicalPath in
1612         presence of rewriting.
1613
1614 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1615
1616         * HttpApplication.cs: don't hang if a sync step is aborted. Fixes the
1617         system.web portion of bug #68270.
1618
1619 2004-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1620
1621         * TraceContext.cs: don't cast to Page is the handler it's
1622         not a page.
1623
1624 2004-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1625
1626         * HttpRequest.cs: CurrentExecutionFilePath is the one that
1627         changes when Transfer or Execute are used, not FilePath.
1628
1629         * HttpServerUtility.cs: moved form saving/restoring from
1630         Transfer to Execute, as it's needed there too. the query string is
1631         correctly set now. Fixes bug #67388.
1632
1633         * HttpContext.cs: use SetCurrentExePath instead of SetFilePath.
1634
1635 2004-10-03 Ben Maurer  <bmaurer@ximian.com>
1636
1637         * HttpResponse.cs: use UtcNow
1638
1639 2004-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1640
1641         * HttpResponse.cs: SuppressContent does not throw and clears all the
1642         buffered output. Fixes bug #67213.
1643
1644 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1645
1646         * HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.
1647
1648 2004-09-29 Ben Maurer  <bmaurer@ximian.com>
1649
1650         * HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.
1651
1652 2004-09-25 Ben Maurer  <bmaurer@ximian.com>
1653
1654         * HttpApplication.cs: Make sure requests are removed from
1655         the timeout manager. Fixes a major leak. #66751.
1656
1657 2004-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1658
1659         * HttpApplicationFactory.cs:
1660         * HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
1661         unloading.
1662
1663 2004-09-12 Ben Maurer  <bmaurer@ximian.com>
1664
1665         * HttpContext.cs: use CallContext. It is a little bit faster.
1666
1667 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1668
1669         * HttpStaticObjectsCollection.cs: don't share static session objects
1670         declared in the application file across the application, but on a
1671         per-session basis. Fixes bug #65446.
1672
1673 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1674
1675         * HttpServerUtility.cs: in Transfer(path), don't keep form data if
1676         the transfer is done from inside a page that received a postback.
1677         Fixes bug #65613.
1678
1679 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1680
1681         * HttpValueCollection.cs: fixed signature of ToString (). Closes bug
1682         #65392.
1683
1684 2004-09-06 Ben Maurer  <bmaurer@users.sourceforge.net>
1685
1686         * HttpWriter.cs (.ctor): Dont create teh StreamWriter twice
1687         (Clear): Don't recreate the MemoryStream and StreamWriter
1688
1689 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1690
1691         * HttpApplication.cs: only add/remove to/from the timeout
1692         manager when we're in a interruptible step.
1693
1694 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1695
1696         * TraceContext.cs: when IsEnabled has not been set, return the value
1697         from the TraceManager. Fixes bug #63469.
1698
1699 2004-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1700
1701         * HttpRuntime.cs: initialize the response writer when finishing a
1702         request because it cannot be queued. Under heavy load we made new
1703         requests be processed before the ones that might be queued. This is
1704         no longer the case.
1705
1706         * QueueManager.cs: instead of queueing/dequeuing separately, we now
1707         have a single method that does everything needed to decide which one
1708         will be the next request processed.
1709
1710 2004-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1711
1712         * HttpRuntime.cs: removed initializations to null in .cctor. Prevent
1713         other requests from avoiding the lock if they are received before the
1714         configuration system is inited. Ensure that the queue manager is not
1715         null before using it (it can be null while the first request is being
1716         processed).
1717
1718 2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1719
1720         * HttpServerUtility.cs: ensure we have a full virtual path for the
1721         request being executed.
1722
1723 2004-08-02  Duncan Mak  <duncan@ximian.com>
1724
1725         * ApplicationShutdownReason.cs: Fixed typos.
1726
1727         * HttpCookieMode.cs:
1728         * HttpDataTransferMode.cs:
1729         * HttpRequestPriority.cs: Added [Serializable] attribute.
1730         
1731 2004-08-02  Duncan Mak  <duncan@ximian.com>
1732
1733         * ApplicationShutdownReason.cs:
1734         * HttpCookieMode.cs:
1735         * HttpDataTransferMode.cs:
1736         * HttpRequestPriority.cs: Added 2.0 enumerations.
1737         
1738 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1739
1740         * HttpApplication.cs: the file not found might be a dependency.
1741
1742 2004-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1743
1744         * HttpCookie.cs: use invariant when formatting expires date. Fixes bug
1745         #61690.
1746
1747 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1748
1749         * HttpApplication.cs: don't keep the session around if we got it from
1750         the context. Fixes bug #61232.
1751
1752 2004-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1753
1754         * HttpUtility.cs: fixed stupid bug in UrlDecode from bytes. Closes bug
1755         #61181.
1756
1757 2004-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1758
1759         * TraceContext.cs: added internal HaveTrace property whose
1760         value is true when the page has a Trace attribute.
1761
1762 2004-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1763
1764         * TraceData.cs: fixed <br> output. Closes bug #60181.
1765
1766 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1767
1768         * HttpUtility.cs: check for control characters in the string to encode
1769         or decode and return the same string if there are none.
1770
1771 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1772
1773         * HttpApplication.cs: change/restore the IPrincipal in their own methods
1774         and make them internal.
1775
1776 2004-06-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1777
1778         * HttpContext.cs: reverting Pedro's patch and sending mail with test
1779         to mono-devel.
1780
1781 2004-06-09  Pedro Martnez Juli  <yoros@wanadoo.es>
1782
1783         * HttpContext: User property returns its own "user" value because
1784         the context can walk through different Threads. When "User" property
1785         is changed, change "Thread.CurrentPrincipal" too.
1786
1787 2004-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1788
1789         * HttpRequest.cs: removed extra ^Ms and fixed style of last patch.
1790
1791 2004-06-08  Alon Gazit  <along@mainsoft.com>
1792
1793         * HttpRequest.cs: Add a patch for HttpRequest.ServerVariables.
1794
1795 2004-06-07  Sebastien Pouliot  <sebastien@ximian.com>
1796
1797         * HttpContext.cs: User property now get/set Thread.CurrentPrincipal.
1798         Fix (at least partially) #59683.
1799
1800 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1801
1802         * HttpRequest.cs: reverting patch from Alon Gazit. Uses the above file
1803         that doesn't compile.
1804
1805 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1806
1807         * TraceData.cs: fixes nullref in an application that relies on
1808         r ["Message"] not being null. Closes bug #59679.
1809
1810 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1811
1812         * HttpCachePolicy.cs: implemented SetAllowResponseInBrowserHistory.
1813
1814 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1815
1816         * HttpRuntime.cs: implemented a 5 simple properties that were TODOs.
1817
1818 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1819
1820         * HttpBrowserCapabilities.cs: implemented ClrVersion and GetClrVersions.
1821         * HttpException.cs: removed MonoTODO.
1822
1823 2004-06-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1824
1825         * TraceContext.cs: don't check if HttpRuntime.TraceManager
1826         is enabled when writing.
1827
1828 2004-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1829
1830         * HttpRequest.cs: added ClientTarget internal property.
1831
1832 2004-06-03  Lluis Sanchez Gual <lluis@ximian.com>
1833
1834         * HttpApplication.cs: Clear the http handler list after releasing the
1835           handlers.
1836
1837 2004-06-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1838
1839         * TraceData.cs: html-encode the messages written to the trace. Fixes
1840         bug #59431.
1841
1842 2004-06-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1843
1844         * HttpWorkerRequest.cs: the hashtables are now case-insensitive. Thanks
1845         to Markus Krutner.
1846
1847 2004-05-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1848
1849         * HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
1850         when SetFilePath is called. This way the cached values are reset and
1851         get the right value in case someone (namely SessionStateModule + 
1852         cookieless session) changes the FilePath after the property cached its
1853         value. Fixes bug #59364.
1854
1855 2004-05-27      Patrik Torstensson <totte@hiddenpeaks.com>
1856
1857         * HttpApplicationFactory.cs: Added SignalError (still todo)
1858
1859 2004-05-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1860
1861         * HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
1862         chunked encoding disabled. Fixed chunked suffix and end. Send the
1863         'lastchunk' marked when in the final Flush even if the content length
1864         is 0. This makes mod-mono-server work fine with chunked encoding.
1865          
1866         * HttpRuntime.cs: Set the _firstRequest* variables to true
1867         earlier. TraceContext don't take any parameter now.
1868
1869         * TraceManager.cs: don't need a context. Use GetAppConfig.
1870
1871 2004-05-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1872
1873         * HttpApplication.cs: set culture/uiculture from configuration and
1874         restore it after each step. Fixes bug #52851.
1875
1876 2004-05-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1877
1878         * HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
1879         entities hashtable creation until it's really needed.
1880
1881 2004-05-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1882
1883         * HttpApplicationFactory.cs: if no module matches the name found for a
1884         possible event, ignore it. Fixes bug #58542.
1885
1886 2004-05-16      Patrik Torstensson <totte@hiddenpeaks.com>
1887
1888         * HttpRuntime (Init): Removed old todo
1889         * HttApplication : Implemented IHttpHandlerFactory recycling
1890         
1891 2004-04-28      Patrik Torstensson
1892
1893         * HttpApplicationState.cs: Performance, usage of ReaderWriter lock,
1894         removed MonoTodo
1895
1896 2004-04-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1897
1898         * HttpUtility.cs: return null in HtmlDecode for null input instead of
1899         throwing an exception. Patch by Jan Jaros (bug #57083).
1900
1901 2004-04-10  Vladimir Vukicevic  <vladimir@pobox.com>
1902
1903         * TimeoutManager.cs: Swap the order of initialization of contexts
1904         and the Timer, to avoid race condition of CheckTimeouts being called
1905         before contexts gets initialized.
1906
1907 2004-03-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1908
1909         * HttpRequestStream.cs: patch from Jan Jaros that fixes bug #56080.
1910         Now the posted file content does not have the boundaries and headers
1911         included.
1912
1913 2004-03-25  Alon Gazit <along@mainsoft.com>
1914
1915         * HttpRequest.cs: fix ValidateCookieCollection() to prevent
1916         InvalidCastException.
1917
1918 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1919
1920         * HttpValueCollection.cs: don't UrlDecode cookies. Fixes bug #55254.
1921
1922 2004-03-01  Larry Ewing  <lewing@ximian.com>
1923
1924         * HttpUtility.cs: fix UrlEncodeToBytes count check.
1925
1926 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1927
1928         * HttpServerUtility.cs:
1929         * HttpUtility.cs: added some checks for null. Fixed UrlPathEncode (bug
1930         #53670).
1931
1932 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1933
1934         * HttpUtility.cs: fixed length check. Closes bug #54201.
1935         Thanks to Michal Moskal. Use MemoryStream instead of an ArrayList when
1936         decoding.
1937
1938 2004-02-11  Jackson Harper <jackson@ximian.com>
1939
1940         * TraceData.cs: Use ToString for cookie/header/var name values so
1941         null is handled properly.
1942         
1943 2004-02-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1944
1945         * HttpApplication.cs: ApplicationState is inited by the factory so,
1946         return that value in the property. when we use the context Session,
1947         cache it in the instance field.
1948
1949         * HttpApplicationFactory.cs: fixed target Type for the event when
1950         hooking application and module events. Initialize application
1951         and session scope objects. Fixes non-aplication events hook up.
1952
1953         * HttpStaticObjectsCollection.cs: added StaticItem and delay the
1954         creation of the objects until they are requested.
1955
1956 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1957
1958         * HttpApplicationFactory.cs: fixlet for session events hook.
1959
1960 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1961
1962         * HttpApplicationFactory.cs: attach all events from Type and BaseType
1963         at the same time. Fixes bug #53454.
1964
1965 2004-01-27  Jackson Harper <jackson@ximian.com>
1966
1967         * HttpCachePolicy.cs: varybyparams::GetResponseHeader can return
1968         null now, dont hadd the header if it does.
1969         * HttpCacheVaryByParams.cs: Return null if there are no items.
1970
1971 2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1972
1973         * HttpCachePolicy.cs: it's not public.
1974         * HttpRuntime.cs: wait for requests before disposing the queue.
1975
1976 2004-01-15  Jackson Harper <jackson@ximian.com>
1977
1978         * HttpCachePolicy.cs: Fix typo causing varyby params headers to be
1979         created when they shouldn't be.
1980         
1981 2004-01-14  Jackson Harper <jackson@ximian.com>
1982
1983         * TraceData.cs: Fix some typos in the output text. Fix control
1984         position when adding controls recursively.
1985         
1986 2004-01-14  Jackson Harper <jackson@ximian.com>
1987
1988         * HttpCachePolicy.cs: Expose duration and sliding properties.
1989         
1990 2004-01-14  Jackson Harper <jackson@ximian.com>
1991
1992         * HttpCachePolicy.cs: Add an event that is fired when the
1993         cacheability is updated. The response uses this to determine
1994         whether or not it needs to cache itself.
1995         * HttpResponse.cs: When the cacheability is updated either create
1996         or dispose of the cached raw response based on whether or not we
1997         wil need it. This allows output caching to be controlled
1998         programatically.
1999         
2000 2004-01-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2001
2002         * HttpContext.cs: add setter for ConfigTimeout.
2003         * HttpException.cs: added Description property and HTML encode some
2004         unescaped values.
2005
2006         * HttpRequest.cs: support request validation.
2007
2008         * HttpRequestValidationException.cs: added message and description.
2009
2010         * HttpServerUtility.cs: implemented ScriptTimeout.
2011
2012 2004-01-11  Jackson Harper <jackson@ximian.com>
2013
2014         * TraceManager.cs: Dont crash if there is no trace config element.
2015         
2016 2004-01-11  Jackson Harper <jackson@ximian.com>
2017
2018         * HttpRequest.cs: Add property for determining if the request is
2019         local or not.
2020         
2021 2004-01-10  Jackson Harper <jackson@ximian.com>
2022
2023         * TraceContext.cs: Handle tracing when it is enabled in the config
2024         file but not on the page.
2025         * TraceManager.cs: Get settings from the configuration object.
2026         * HttpRuntime.cs: Create trace manager in the first request start
2027         so it can get configuration settings.
2028         
2029 2004-01-10  Jackson Harper <jackson@ximian.com>
2030
2031         * TraceContext.cs: Save the request path in the trace data.
2032         * TraceData.cs: Add RequestPath property, make some rendering
2033         methods internal static so the TraceHandler can use them.
2034         * TraceManager.cs: Expose trace data, add a method for clearing
2035         trace data.
2036         
2037 2004-01-10  Jackson Harper <jackson@ximian.com>
2038
2039         * HttpRuntime.cs: Add trace manager
2040         * TraceManager.cs: New class for handling trace configuration and
2041         storing trace data objects.
2042         * TraceContext.cs: Save trace data to the trace manager. Fix typo.
2043         
2044 2004-01-10  Jackson Harper <jackson@ximian.com>
2045
2046         * TraceData.cs: New class for storing trace data. Data is stored
2047         here instead of the trace context so it can be saved and accessed
2048         from the trace handler.
2049         * TraceContext.cs: Save data in the TraceData object, let the
2050         trace data object handle the rendering.
2051         
2052 2004-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2053
2054         * HttpRequest.cs: use ContentEncoding for QueryString. Fixes bug #52577.
2055         Thanks to Jan Jaros (mono-bug@jerryweb.info).
2056
2057         * HttpRequestValidationException.cs: fix comment.
2058
2059 2004-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2060
2061         * HttpException.cs: default to error 500. Fixes bug #52623.
2062
2063 2004-01-04  Jackson Harper <jackson@ximian.com>
2064
2065         * TraceContext.cs: Store and render trace info times. Also render
2066         cookie sizes. Remove debug code.
2067         
2068 2004-01-04  Jackson Harper <jackson@ximian.com>
2069
2070         * HttpResponse.cs: Set the cached response date header so it can
2071         be updated.
2072         * HttpResponseHeader.cs: Let values be set so we can update cached 
2073         response header values.
2074         
2075 2004-01-04  Jackson Harper <jackson@ximian.com>
2076
2077         * HttpResponse.cs: Implement RemoveOutputCacheItem.
2078         
2079 2004-01-04  Jackson Harper <jackson@ximian.com>
2080
2081         * HttpCachePolicy.cs: Add internal method to get the vary by custom string
2082         * HttpCacheVaryByHeaders.cs: Add internal method to get the header names.
2083         
2084 2004-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2085
2086         * HttpRuntime.cs: implemented MachineConfigurationDirectory,
2087
2088 2004-1-1  Alon Gazit <along@mainsoft.com>
2089         * HttpWriter.cs: add check in Write() in order to prevent
2090         NullReferenceException.
2091
2092 2004-1-1  Alon Gazit <along@mainsoft.com>
2093         * HttpResponse.cs: implemented ExpiresAbsolute and Expires.
2094
2095 2003-12-18  Jackson Harper <jackson@ximian.com>
2096
2097         * TraceContext.cs: Write () methods are not warnings.
2098         
2099 2003-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2100
2101         * HttpBrowserCapabilities.cs: added GetClrVersions ().
2102         * HttpCachePolicy.cs: added SetAllowResponseInBrowserHistory ().
2103         * HttpContext.cs: added set_Current and RewritePath (s, s, s) for 1.1.
2104         * HttpRequest.cs: added set_ContentType, SetPathInfo and ValidateInput.
2105         * HttpRequestValidationException.cs: new class for 1.1
2106         * HttpResponse.cs: added RedirectLocation.
2107         * HttpRuntime.cs: added UnloadAppDomain.
2108         * HttpServerUtility.cs: Execute (s, t, b) is internal for < 1.2
2109         * HttpUtility.cs: copied UrlPathEncode from HttpServerUtility.
2110         * HttpWorkerRequest.cs: added [ComVisible] and made the ctor public.
2111
2112 2003-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2113
2114         * HttpContext.cs: implemented IsCustomErrorEnabled and
2115         IsDebuggingEnabled. Added internal ErrorPage property.
2116
2117         * HttpRuntime.cs: on error, check if we have a custom error page enabled
2118         to handle it and redirect.
2119
2120         * HttpResponse.cs: added RedirectCustomError (), which actually does
2121         the redirection to the error page.
2122         
2123 2003-12-16  Jackson Harper <jackson@ximian.com>
2124
2125         * TraceContext.cs: Render all the data, and the stylesheet.
2126         
2127 2003-12-16  Jackson Harper <jackson@ximian.com>
2128
2129         * TraceContext.cs: Add incomplete render method.
2130         
2131 2003-12-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2132
2133         * CapabilitiesLoader.cs: loads browser detection and capabilities data
2134         from browscap.ini file by Gary J. Keith.
2135
2136         * HttpBrowserCapabilities.cs: removed almost all TODOs.
2137
2138         * HttpRequest.cs: fixed Browser property.
2139
2140 2003-12-15  Jackson Harper <jackson@ximian.com>
2141
2142         * TraceContext.cs: Initial implementation of storing data.
2143         * HttpContext.cs: Create and expose a trace object.
2144         
2145 2003-12-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2146
2147         * HttpApplication.cs: ThreadAbortException is ok on Redirect.
2148         * HttpContext.cs: added TimeoutPossible property.
2149         * HttpResponse.cs: throw ThreadAbortException if End () is called within
2150         a step in which is possible to timeout.
2151
2152         Fixes bug #51703.
2153
2154 2003-12-04  Jackson Harper <jackson@ximian.com>
2155
2156         * HttpRequest.cs: Cleanup method.
2157         
2158 2003-12-04  Jackson Harper <jackson@ximian.com>
2159
2160         * HttpValueCollection.cs: Allow blank value names. Posting
2161         <blank>=SomeValue is valid. And occurs if a radio button does
2162         not have its name set.
2163         
2164 2003-12-03  Jackson Harper <jackson@ximian.com>
2165
2166         * HttpResponse.cs: Actually apply an app path modifier in
2167         ApplyAppPathModifer and add a method to set the app path modifier.
2168         * HttpRequest.cs: Add utility method for setting a request header.
2169         
2170 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2171
2172         * HttpApplication.cs: handle FileNotFound and DirectoryNotFound
2173         exceptions when creating the handler to generate a better error page.
2174
2175         * HttpException.cs: display the http_code if available.  Changed all
2176         \n by \r\n to make the hidden stack trace readable.
2177         
2178         * StaticFileHandler.cs: don't send the real path in th eerror.
2179
2180 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2181
2182         * HttpContext.cs: updated GetConfig and GetAppConfig to new API.
2183         
2184         * HttpResponse.cs: separate initialization of the HttpWriter, as it
2185         tries to read configuration settings while the config. system is not
2186         available (ie, before the first request).
2187         
2188         * HttpRuntime.cs: delayed queueManager and response writer
2189         initialization until the configuration system is working.
2190
2191 2003-11-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2192
2193         * HttpRuntime.cs: added request queue handling.
2194
2195         * QueueManager.cs: simple request queue.
2196         
2197         * TimeoutManager.cs: added some locks to prevent the enumerator used in
2198         CheckTimeouts to be out of synch.
2199
2200 2003-11-25  Jackson Harper <jackson@ximian.com>
2201
2202         * HttpStaticObjectsCollection.cs: Add methods for serialization
2203         and conversion to/from byte arrays.
2204         
2205 2003-11-21  Jackson Harper <jackson@ximian.com>
2206
2207         * HttpResponse.cs: When caching data set the content length in the
2208         cached repsonse so that only that amount will be written back to
2209         the client. Add method to write a range of binary data.
2210         * HttpCacheVaryByParams.cs: Add method to retrieve param names.
2211         
2212 2003-11-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2213
2214         * HttpApplication.cs:
2215         * HttpContext.cs:
2216         * HttpRuntime.cs: add timeout handling.
2217         * TimeoutManager.cs: new class that takes care of aborting threads on
2218         timeout.
2219
2220 2003-11-19  Jackson Harper <jackson@ximian.com>
2221
2222         * HttpWriter.cs: Use a constant for the buffer size so the cache
2223         can get the buffer size. Add method to get the buffer.
2224         * HttpResponse.cs: Methods for getting data to cache, and setting
2225         vars from the cache.
2226         * HttpCachePolicy.cs: Expose a pages cache expire time.
2227         
2228 2003-11-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2229
2230         * HttpResponse.cs: 
2231         * HttpWriter.cs: some fixes to allow closing a response stream without
2232         messing the rest.
2233
2234 2003-11-13  Jackson Harper  <jackson@ximian.com>
2235
2236         * HttpCachePolicy.cs: Make sure cacheability and maxage get
2237         set. Add method to set Http response header data
2238         * HttpCacheVaryByParams.cs: Add method to create a response header.
2239         * HttpCacheability.cs: Add ServerAndPrivate and ServerAndNoCache.
2240         * HttpResponse.cs: Set cache headers.
2241         
2242 2003-11-11 Ben Maurer  <bmaurer@users.sourceforge.net>
2243
2244         * HttpModuleCollection.cs (GetKey): Recursion, again!
2245
2246 2003-11-11 Ben Maurer  <bmaurer@users.sourceforge.net>
2247
2248         * HttpClientCertificate.cs (ValidUntil): recursion!
2249
2250 2003-11-08 Ben Maurer  <bmaurer@users.sourceforge.net>
2251
2252         * SiteMapNode.cs (GetDataSourceView): Implement.
2253         * SiteMapProvider.cs: Typo fixing.
2254         * XmlSiteMapProvider.cs: We shouldnt resolve here.
2255         
2256 2003-11-08 Ben Maurer  <bmaurer@users.sourceforge.net>
2257
2258         * SiteMap.cs (Init): implement a hack that doesnt need the config
2259         stuff. Should do that later.
2260         * SiteMapNodeCollection (OnValidate): Fix recursion.
2261         * SiteMapProvider.cs: We dont implement some culture stuff work
2262         around it. Fix typo.
2263         * XmlSiteMapProvider.cs: Added.
2264         
2265 2003-11-07 Ben Maurer  <bmaurer@users.sourceforge.net>
2266
2267         * ISiteMapProvider.cs:
2268         * SiteMap.cs:
2269         * SiteMapNode.cs:
2270         * SiteMapNodeCollection.cs:
2271         * SiteMapProvider.cs:
2272         * SiteMapProviderCollection.cs: V2 sitemap related stuff.
2273
2274 2003-11-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2275
2276         * HttpRequest.cs: don't attempt to read more bytes than specified
2277         content length.
2278
2279 2003-11-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2280
2281         * HttpRequest.cs:
2282         * HttpResponse.cs:
2283         * HttpUtility.cs:
2284         * HttpValueCollection.cs: encoding fixes/updates.
2285
2286         * HttpWriter.cs: when updating the encoding, flush the existing stream.
2287         Encoding updates.
2288
2289 2003-11-04 Ben Maurer  <bmaurer@users.sourceforge.net>
2290
2291         * HttpContext.cs (IsCustomErrorEnabled): dont throw exception, just
2292         return false (which makes sense, as the custom errors *arent* enabled;
2293         ie they dont work.
2294         * HttpResponseStream.cs: you actually can write with len = 0
2295
2296 2003-11-03 Jackson Harper <jackson@ximian.com>
2297
2298         * HttpResponse.cs (ContentEncoding): Throw
2299         ArgumentNullException. Patch by Yaron Shkop.
2300         
2301 2003-10-30  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2302
2303         * HttpMultipartContentParser.cs : Quick fix for cygwin build. 
2304           CSC complains that constant char cannot be casted as byte.
2305
2306 2003-10-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2307
2308         * HttpApplication.cs: added AssemblyLocation property.
2309
2310 2003-10-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2311
2312         * HttpApplicationFactory.cs: use NoParamsInvoker.
2313         * HttpRequest.cs: support request filters.
2314         * HttpRequestStream.cs: mono-stylized and added new Set method.
2315
2316         * NoParamsInvoker.cs: proxy class to invoke user-provided methods
2317         without parameters that are invoked by EventHandlers.
2318
2319 2003-10-13  Lluis Sanchez Gual <lluis@ximian.com>
2320
2321         * HttpResponse.cs: Changed harcoded switch to en-US culture to a switch
2322           to invariant culture.
2323
2324 2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2325
2326         * HttpResponse.cs:
2327         * HttpServerUtility.cs: change the response writer in Execute. Thanks
2328         to Rich Alimi <rich@velvetsea.net> for noticing this.
2329
2330 2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2331
2332         * HttpApplicationFactory.cs: support for wiring up events without
2333         parameters.
2334
2335 2003-10-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2336
2337         * HttpUtility.cs: small memory usage reduction.
2338
2339 2003-10-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2340
2341         * HttpApplication.cs: pass the Uri, not the file path to
2342         when looking for a handler.
2343
2344 2003-09-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2345
2346         * HttpRequest.cs: small fix needed when reading big POST data.
2347
2348 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
2349
2350         * HttpRequest.cs: Url property: use GetLocalAddress() to get the address
2351           (this will get the address from the request headers).
2352
2353 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
2354
2355         * HttpServerUtility.cs: In Transfer(), preserve the query string if
2356           told to do so.
2357
2358 2003-08-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2359
2360         * HttpApplication.cs: ensure we do all the EndRequest steps. Don't
2361         filter the output on error.
2362         
2363         * HttpResponse.cs: modified DoFilter to allow bypassing filtering.
2364
2365 2003-08-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2366
2367         * HttpApplication.cs: when the request is completed or an
2368         error happens, execute all the delegates attached to EndRequest, not
2369         only the last one. This makes xsp/test/authtest work again.
2370         
2371         * HttpMethodNotAllowedHandler.cs: fixed description for http
2372         status code.
2373
2374 2003-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2375
2376         * HttpRequest.cs: quick way of checking that the path is within the
2377         root for the application. Thanks to Johannes for reporting.
2378         
2379         * HttpRuntime.cs: use the status code from teh exception when it'ss a
2380         HttpException.
2381
2382         * StaticFileHandler.cs: forbidden is 403.
2383
2384 2003-08-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2385
2386         * HttpServerUtility.cs: fixed path and query. Path by Rich Alimi
2387         <rich@velvetsea.net>.
2388
2389 2003-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2390
2391         * HttpException.cs: make the unhandled error more like the MS one.
2392         * HttpRuntime.cs: set a 500 error code on unhandled exceptions.
2393
2394 2003-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2395
2396         * HttpResponse.cs: flush headers when the body length is 0.
2397         * StaticFileHandler.cs: added If-Modified-Since handling patch slightly
2398         modified from the original by Piers Haken <piersh@friskit.com>.
2399
2400 2003-08-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2401
2402         * HttpResponse.cs: another patch from totte and me. This one prevents
2403         writing output if the client have disconnected and filters the data
2404         when there's a non-final Flush in the middle of the process.
2405
2406 2003-08-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2407
2408         * HttpApplication.cs: fixed typos. Closes bug #44197.
2409
2410 2003-08-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2411
2412         * HttpApplication.cs:
2413         * HttpApplicationFactory.cs: fix duplicate application OnStart events.
2414
2415         Patch by Patrik Torstensson.
2416
2417 2003-08-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2418
2419         * HttpApplicationFactory.cs: use the correct Delegate.CreateDelegate
2420         overload. The previous one only admits static methods.
2421
2422 2003-08-01  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2423
2424         * ProcessModelInfo.cs: Fixed signature
2425
2426 2003-07-30  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2427
2428         * WebCategoryAttribute.cs: Implemented localization
2429         * WebSysDescriptionAttribute.cs: Implemented localization
2430
2431 2003-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2432
2433         * HttpRuntime.cs: also clear the headers that may have been set upon
2434         error processing the request.
2435
2436 2003-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2437
2438         * HttpResponseStreamProxy.cs: reformatted. Fixed infinite recursion in
2439         Write method.
2440
2441         * HttpWriter.cs: flush the filter after writing.
2442
2443 2003-07-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2444
2445         * HttpWriter.cs: avoid duplicating the MemoryStream byte buffer.
2446
2447 2003-07-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2448
2449         * HttpContext.cs: Session doesn't have a setter.
2450
2451         * HttpResponse.cs: Request is private.
2452
2453 2003-07-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2454
2455         * HttpRequest.cs: fixed Headers property. It was getting known headers
2456         values instead of known headers names.
2457
2458 2003-07-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2459
2460         * HttpApplication.cs: prevent nullref if an error happens before context
2461         is set.
2462         * HttpException.cs: small fix in the stack trace sent.
2463         * HttpUtility.cs: the lock is not needed.
2464
2465 2003-06-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2466
2467         * HttpRequest.cs: added REMOTE_PORT.
2468         * HttpValueCollection.cs: fixed bug #45490.
2469
2470 2003-05-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2471
2472         * HttpApplication.cs:
2473         * HttpApplicationFactory.cs: fire application start and session
2474         start/end events.
2475
2476 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2477
2478         * HttpException.cs: encode as HTML the inner exception that
2479         is appended as a comment at the end of error pages.
2480
2481 2003-05-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2482
2483         * HttpWriter.cs: don't do anything in Flush. Fixes #42249.
2484
2485 2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2486
2487         * HtmlizedException.cs: added more virtual methods.
2488
2489         * HttpException.cs:  some work on the output when there's a source
2490         file present.
2491
2492 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2493
2494         * HtmlizedException.cs: simplified to cope with the new interface.
2495
2496         * HttpApplicationFactory.cs: use the application file parser to get the 
2497         application Type.
2498         
2499         * HttpException.cs: small changes. Needs some more work on
2500         ParseExceptions.
2501         
2502 2003-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2503
2504         * HttpRequest.cs: fixed Url property.
2505
2506 2003-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2507
2508         * HtmlizedException.cs:
2509         * HttpException.cs: display the correct line number in error messages.
2510
2511 2003-03-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2512
2513         * HttpCachePolicy.cs: implemented all TODOs.
2514         * HttpRequestStream.cs: make it internal.
2515
2516 2003-03-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2517
2518         * HttpContext.cs: implemented RewritePath in other way.
2519         * HttpRequest.cs: removed SetPhysicalPath and added SetForm.
2520         * HttpServerUtility.cs: implemented Transfer (string, bool).
2521
2522 2003-03-16  Daniel Lopez Ridruejo <daniel @ rawbyte.com>
2523         * HttpContext.cs : Implemented RewritePath
2524         * HttpRequest.cs : Added internal function SetPhysicalPath
2525
2526 2003-03-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2527
2528         * HttpServerUtility.cs: implemented Transfer ().
2529
2530 2003-03-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2531
2532         * HttpRuntime.cs: Cache no longer have a Dispose method.
2533
2534         * HttpServerUtility.cs: removed MonoTODO.
2535
2536 2003-03-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2537
2538         * HttpHelper.cs: store the values in an ArrayList to get them in correct
2539         order.
2540
2541 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2542
2543         * HttpApplicationFactory.cs: Global.asax takes precedence over
2544         global.asax if it exists.
2545
2546         * HttpRequest.cs: use allowCrossAppMapping in MapPath.
2547
2548 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2549
2550         * HttpApplication.cs: CreateHttpHandler is now internal.
2551
2552         * HttpRequest.cs: allow setting QueryStringRaw, which
2553         invalidates the data obtained from the previous value. Added internal
2554         SetFilePath method.
2555
2556         * HttpServerUtility.cs: implemented Execute and GetLastError.
2557
2558 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2559
2560         * HttpServerUtility.cs: style.
2561
2562 2003-02-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2563
2564         * HttpApplication.cs: only execute the EndRequest step on error
2565         condition or request marked as completed. This prevent page events from
2566         being called when, for example, the url authorization module forbids
2567         the request.
2568
2569 2003-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2570
2571         * HttpRequest.cs: implemented the indexer.
2572
2573 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2574
2575         * HtmlizedException.cs: base class for exceptions that makes it easy to
2576         generate error pages.
2577
2578         * HttpException.cs: improved error displaying.
2579
2580         * HttpRuntime.cs: removed debugging output.
2581
2582 2003-02-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2583
2584         * HttpApplication.cs: display the error instead of hanging when we get
2585         any error before the last step of the request.
2586
2587 2003-02-04  Tim Haynes <thaynes@openlinksw.com>
2588
2589         * HttpApplicationFactory.cs: fixed HttpRuntime.Close() to decrement
2590         instance counter.
2591
2592 2003-01-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2593
2594         * HttpRequest.cs: added BaseVirtualDir property and use it in MapPath.
2595
2596 2003-01-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2597
2598         * HttpRequest.cs: implemented CurrentExecutionFilePath.
2599
2600 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2601
2602         * HttpApplication.cs: keep _lasterror if no context. Attach
2603         application events *after* modules initialization (if not, User is not
2604         set when the user handler is called).
2605         
2606         * HttpApplicationFactory.cs: made all methods related to
2607         AttachEvents static. I will fix OnStart/OnEnd for application and
2608         session later.
2609         
2610         * HttpRequest.cs: don't initialize cookies twice.
2611
2612 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2613
2614         * HttpResponse.cs:
2615         (ApplyAppPathModifiers): return the root directory for "".
2616
2617 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2618
2619         * HttpUtility.cs: fixed HtmlDecode to avoid ArgumentOutOfRangeException.
2620
2621 2003-01-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2622
2623         * HttpApplication.cs: added new state to handle default authentication.
2624
2625 2003-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2626
2627         * HttpContext.cs: removed hack to get the User.
2628
2629 2003-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2630
2631         * HttpUtility.cs: fixed bug #36038. Thanks to juancri@tagnet.org for
2632         reporting the bug and how to fix it.
2633
2634 2002-12-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2635
2636         * HttpCookie.cs: send 'expires' in the header.
2637
2638 2002-12-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2639
2640         * HttpValueCollection.cs: patch from Botjan Vizin 
2641         <bostjan.vizin@siol.net> that implements ToString (bool).
2642
2643 2002-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2644
2645         * HttpApplicationFactory.cs: add the context as parameter when building
2646         the application Type.
2647         
2648         * HttpCookie.cs: new internal constructor.
2649         * HttpCookieCollection.cs: new internal method to make a cookie expire.
2650
2651         * HttpRequest.cs: MapPath fixes.
2652         * HttpResponse.cs: implemented ApplyAppPathModifier.
2653         * HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
2654
2655 2002-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2656
2657         * HttpContext.cs: hack to create a default user when there's no one.
2658         Implemented GetConfig (string).
2659
2660         * HttpRequest.cs: fixes to MapPath (string).
2661
2662 2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2663
2664         * HttpRuntime.cs: avoid nulls and exception when getting resource
2665         format strings.
2666
2667         * StaticFileHandler.cs: added file name to error message.
2668
2669 2002-12-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2670
2671         * HttpResponse.cs: avoid sending chunked content for HTTP/1.1.
2672
2673 2002-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2674
2675         * HttpApplicationFactory.cs: get the events from the application class,
2676         fire Application/Session Start/End and add the others as application
2677         events.
2678
2679 2002-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2680
2681         * HttpApplicationFactory.cs: compile global.asax file if it exists.
2682
2683 2002-11-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2684
2685         * HttpRequest.cs: provide a default Browser until we detect it.
2686         * HttpResponse.cs:
2687         (End): do not close the connection here.
2688         (Flush (bool)): send the headers when, for example, Redirect () is
2689         called.
2690
2691 2002-11-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2692
2693         * HttpException.cs: simple error output.
2694
2695 2002-11-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2696
2697         * HttpApplication.cs: style.
2698         * HttpException.cs: style.
2699         * HttpRuntime.cs: only flush the response if there are no errors.
2700         Otherwise, write an error output.
2701         * HttpWriter.cs: change Unicode to UTF8.
2702
2703 2002-11-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2704
2705         * HttpApplication.cs: don't begin the request using ExecuteNextAsync
2706         (it fails to work on NetServ).
2707
2708         * HttpWorkerRequest.cs: typo.
2709
2710 2002-11-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2711
2712         * HttpValueCollection.cs: the value may contain trailing '=' as it is
2713         UrlEncoded. Don't split name=value based on '='.
2714
2715 2002-11-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2716
2717         * HttpCookie.cs: made GetCookieHeader internal.
2718
2719         * HttpRequest.cs: get cookies from request.
2720
2721         * HttpResponse.cs: send cookies. Implemented
2722         AddFileDependencies (). Added check for _Writer == null in Flush
2723         (Patrik ;-). Clear the content if HEAD or SupressContent == true.
2724         Removed redirect hack used in old server.
2725
2726 2002-10-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2727
2728         * HttpRequest.cs: fixed GetRawContent (). Now it only tries to read at
2729         most ContentLength bytes.
2730
2731         * HttpResponse.cs: now it sends the headers. Added
2732         X-Powered-By header :-).
2733
2734         * HttpRuntime.cs: fixed typo.
2735
2736         * HttpValueCollection.cs: cosmetic changes.
2737
2738 2002-10-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2739
2740         * HttpApplication.cs: reenabled a few lines of code
2741         (ThreadPool already fixed). 
2742         
2743         * HttpRequest.cs:
2744         * HttpResponse.cs:
2745         * HttpUtility.cs:
2746         * HttpValueCollection.cs:
2747         * HttpWriter.cs: Use WebEncoding.Encoding.
2748
2749 2002-10-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2750
2751         * HttpWriter.cs: changed encoding of the writer from Unicode to UTF8.
2752         This fixes sending bytes and allows mixing byte with chars.
2753
2754 2002-10-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2755
2756         * HttpResponse.cs: implemented WriteFile methods.
2757         * MimeTypes.cs: removed duplicated entries.
2758
2759 2002-10-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2760
2761         * HttpResponse.cs: don't throw exception in a couple of
2762         methods not yet implemented.
2763
2764 2002-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2765
2766         * HttpApplication.cs: fixed type and handle factories when creating
2767         IHttpHandler for a request.
2768
2769 2002-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2770
2771         * HttpApplication.cs: use handlers from configuration.
2772         * HttpContext.cs: get handlers from ConfigurationSettings.
2773
2774 2002-10-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2775
2776         * HttpMethodNotAllowedHandler.cs:
2777         * HttpRuntime.cs:
2778         * StaticFileHandler.cs: Modified file.
2779
2780         * HttpUtility.cs: implemented all missing methods.
2781
2782
2783 2002-09-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2784
2785         * System.Web/HttpApplication.cs: use the static file handler.
2786         * System.Web/HttpForbiddenHandler.cs: handler to forbid access.
2787         * System.Web/HttpMethodNotAllowedHandler.cs: handler for method not
2788         allowed.
2789         
2790         * System.Web/HttpUtility.cs: finished all UrlDecode methods.
2791         * System.Web/MimeTypes.cs: map from file extension to MIME type.
2792         * System.Web/StaticFileHandler.cs: serves static files
2793
2794 2002-09-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2795
2796         * System.Web/HttpApplication.cs:
2797         * System.Web/HttpApplicationFactory.cs:
2798         * System.Web/HttpRequest.cs:
2799         * System.Web/HttpRuntime.cs: we are now able to compile pages and use
2800         HttpApplication, HttpRuntime and SimpleWorkerRequest.
2801
2802 2002-09-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2803
2804         * HttpApplication.cs: added some missing methods.
2805         * HttpApplicationFactory.cs: get event handlers for the application.
2806         * HttpAsyncResult.cs: little fixes.
2807         * HttpRequest.cs: make Encoding work even with no worker request.
2808
2809 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2810
2811         * HttpWorkerRequest.cs: mcs doesn't go crazy. It's just me, that forgot
2812         to add HttpMapPath to the list file...
2813
2814 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2815
2816         * HttpWorkerRequest.cs: fixes compilation with mcs. I will add a bug
2817         report when i get a test case.
2818
2819 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2820
2821         * HttpApplicationFactory.cs:
2822         * HttpCachePolicy.cs:
2823         * HttpResponseHeader.cs:
2824         * HttpResponseStream.cs:
2825         * HttpResponseStreamProxy.cs:
2826         * HttpValueCollection.cs: misc. fixes based on class status page.
2827
2828         * IHttpMapPath.cs: New file.
2829
2830         * HttpRequest.cs: implemented ContentEncoding.
2831         * HttpWorkerRequest.cs: mono-stylized and implemented
2832         SendResponseFromMemory.
2833
2834 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2835
2836         * HttpContext.cs: reformatted.
2837         * HttpStaticObjectsCollection.cs: implemented GetEnumertor, CopyTo and
2838         the indexer.
2839
2840 2002-08-05  Patrik Torstensson <ptorsten@hotmail.com>
2841
2842         * HttpApplication.cs: Implemented a state machine to allow handling of
2843         HttpModules and HttpHandlers. Implementation of async handlers. 
2844                                                                  
2845         * HttpApplicationFactory.cs: Factory for creating HttpApplication
2846         instances, including caching.
2847         
2848         * HttpRuntime.cs: Usage of the new HttpApplicationFactory to get a
2849         application instance to execute requests in and implementation of 
2850         request execution (still no request queue). 
2851                                                          
2852         * HttpAsyncResult.cs: New file to handle async module results.                                          
2853                                                          
2854         * HttpRequest.cs: Change signature of Dispose
2855         * HttpResponse.cs: new internal method allowing filtering to happen
2856         during the request flow in the state machine.
2857
2858 2002-07-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2859
2860         * HttpApplication.cs: events were not being initialized.
2861
2862 2002-07-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2863
2864         * ProcessModelInfo.cs: fixed compilation.
2865
2866 2002-07-25  Tim Coleman <tim@timcoleman.com>
2867         * ProcessModelInfo.cs:
2868                 New class added
2869         * HttpParseException.cs:
2870         * HttpCompileException.cs:
2871         * HttpUnhandledException.cs:
2872                 Internal constructors added to these
2873
2874 2002-07-24  Tim Coleman <tim@timcoleman.com>
2875         * ProcessInfo.cs: 
2876                 Fix constructor, reference to shutdownreason.
2877
2878 2002-07-24  Tim Coleman <tim@timcoleman.com>
2879         * HttpCachePolicy.cs:
2880                 Added stubbs to this class.
2881         * HttpCacheability.cs:
2882         * HttpCacheRevalidation.cs:
2883         * HttpValidationStatus.cs:
2884         * ProcessShutdownReason.cs:
2885         * ProcessStatus.cs:
2886         * TraceMode.cs:
2887                 Reorder the enumerations (and in some cases make
2888                 one-based) in order to agree with the .NET 
2889                 implementation, based on the class status page.
2890         * ProcessInfo.cs:
2891                 Implementation of this class.
2892
2893 2002-07-23  Tim Coleman <tim@timcoleman.com>
2894         * HttpCompileException.cs:
2895         * HttpParseException.cs:
2896         * HttpUnhandledException.cs:
2897                 New stubbs created.
2898         * HttpApplication.cs:
2899         * HttpBrowserCapabilities.cs:
2900                 Added missing methods stubbs and attributes based
2901                 on the class status page.  Also reformatted some
2902                 source for consistency.
2903
2904 2002-07-23  Tim Coleman <tim@timcoleman.com>
2905         * HttpUtility.cs: Moved entities hashtable into main
2906                 class as a static object, so we don't instantiate
2907                 a new one every time.  Also put the hashtable
2908                 building into a lock block.
2909
2910 2002-07-22  Tim Coleman <tim@timcoleman.com>
2911         * HttpUtility.cs: Cleanup of the code, implementation
2912                 of HtmlDecode/HtmlEncode functions
2913
2914 2002-07-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2915
2916         * HttpResponse.cs: quick&dirty hack to make redirection work. Should
2917         be out of there once we have SimpleWorkerRequest.
2918
2919 2002-07-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2920
2921         * HttpUtility.cs: little typo, big headache.
2922
2923 2002-07-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2924
2925         * HttpRuntime.cs: don't throw NotImplemented in a couple of methods.
2926
2927 2002-06-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2928
2929         * System.Web/HttpResponse.cs: 
2930
2931         Fixes based on class status page:
2932         
2933                 - Add attributes (DefaultEvent, ParseChildren).
2934                 - Fix declarations.
2935                 - Explicitly implement some interfaces (IPostBackDataHandler
2936                 and IPostBackEventHandler).
2937                 - Implemented some missing methods.
2938
2939 2002-06-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2940
2941         * HttpContext.cs:
2942         (Session): return null instead of throwing an exception.
2943
2944         * HttpRequest.cs:
2945         (HttpMethod): return RequestType if not set.
2946         (GetRawContent): return QueryString if we don't have a
2947         HttpWorkerRequest.
2948
2949         * HttpUtility.cs: fixed Decode and Encode.
2950
2951 2002-06-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2952
2953         * HttpApplication.cs:
2954         * HttpContext.cs: added System.Web.SessionState namespace.
2955
2956         * HttpSessionState.cs: removed. It is under
2957         System.Web.SessionState.
2958
2959 2002-06-10  Duncan Mak  <duncan@ximian.com>
2960
2961         * HttpBrowserCapabilities.cs (BackgroundSounds): Fixed typo.
2962
2963 2002-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2964
2965         * HttpRequest.cs: implemented Browser property.
2966
2967 2002-06-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2968
2969         * HttpBrowserCapabilities.cs: stubbed out.
2970
2971 2002-05-18  Miguel de Icaza  <miguel@ximian.com>
2972
2973         * HttpRuntime.cs: Reformat file.
2974
2975 2002-05-07  Duncan Mak  <duncan@ximian.com>
2976
2977         * HttpBrowserCapabilities.cs: Added, replacing
2978         HttpBrowserCapabilites because of typo.
2979
2980         * HttpBrowserCapabilites.cs: Removed, replaced by above.
2981
2982         * HttpRequest.cs (Browser): Fixed typo.
2983
2984 2002-04-12  Patrik Torstensson <patrik.torstensson@labs2.com>
2985
2986         * HttpApplication.cs: Minor updates
2987         * HttpApplicationState.cs: Ready.
2988         * HttpClientCertificate.cs: Signature updates
2989         * HttpValueCollection.cs: ready
2990         * HttpStaticObjectsCollection.cs: ready
2991         * HttpResponseHeader.cs: made internal only
2992         * HttpResponse.cs: Signature updates
2993         * HttpPostedFile.cs: ready
2994         * HttpCacheVaryByHeaders.cs: ready (except communication to policy)
2995         * HttpCacheVaryByParams.cs: ready (except communication to policy)
2996         
2997         System.Web is now over 60% ready.. 
2998
2999 2002-04-11  Patrik Torstensson <patrik.torstensson@labs2.com>
3000
3001         * HttpException.cs: 95% ready, only windows dependent code left
3002         * HttpFileCollection.cs: Finished.
3003         * HttpRequest.cs: Minor fixes and fixed signature problems
3004         * HttpResponse.cs: Implementation of missing methods and signature problems
3005         * HttpResponseHeader.cs: Fixed signature problems
3006         * HttpRuntime.cs: Fixed signature problems
3007         * HttpServerUtility.cs: Added support for HttpApplication
3008         * HttpSessionState.cs: Fixed signature issues
3009         * HttpUtility.cs: fixed signature issues
3010         * HttpValueCollection.cs: Support for cookie parsing and fixed signature issues
3011         * HttpWorkerRequest.cs: Fixed small signature issue
3012         * HttpWriter.cs: Fixed signature issue
3013         * HttpApplication.cs: Basic implementation
3014         * HttpApplicationState.cs: Small fixes to support major change comming up
3015         * HttpBrowserCapabilities.cs: Added Type method
3016         * HttpClientCertificate.cs: Almost ready, needs to parse certificate.
3017         * HttpContext.cs: Fixed signature issues and added last methods.
3018         * HttpCookie.cs: Full implementation
3019         * HttpCookieCollection.cs: Full implementation
3020         * TraceContext.cs: Methods implemented.
3021         * HttpPostedFile.cs: Placeholder
3022         * HttpStaticObjectsCollection.cs: Placeholder
3023         * HttpModuleCollection.cs: Ready, will be used during the major revamp.
3024         
3025         * Fixed a number of other small signature problems also (class status page)
3026         
3027         
3028 2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>
3029
3030     * HttpWorkerRequest.EndOfSendNotification.cs Removed (included in WorkerRequest)
3031     * Checkin of all new files (noted in last changenote)
3032
3033 2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>
3034
3035     * HttpContext.cs: First implementation (basic support, few methods left to impl)
3036     * HttpException.cs: Partial implementation (basic support)
3037     * HttpHelper.cs: Header parse helper, used by runtime (non public)
3038     * HttpRequest.cs: Implementation (all methods there, not all fully impl)
3039     * HttpRequestStream.cs: Full implementation
3040     * HttpResponse.cs: Partial implementation(almost all methods)
3041     * HttpResponseHeader.cs: Header helper
3042     * HttpResponseStream.cs: Full implementation - Response stream support
3043     * HttpResponseStreamProxy.cs: Implementation - filter support
3044     * HttpRuntime.cs: Rewrite to support one IHttpModule (use for testing the runtime)
3045         * HttpServerUtility.cs: Implemented usage of HttpContext for methods
3046                                 and moved encoding functions to HttpUtility.
3047
3048     * HttpUtility.cs: Added encoding/decoding functions from HttpServerUtility and
3049                       added the Attribute encoding functions.
3050
3051     * HttpValueCollection.cs: Implementation.
3052     * HttpWorkerRequest.cs: Rewrite and implementation of all methods (ready)
3053     * HttpWriter.cs: Implementation (with filter support)    
3054
3055     * HttpFileCollection: Added dummy class (placeholder)
3056     * HttpApplication.cs: Added dummy class (placeholder)
3057     * HttpApplicationState.cs: Added dummy class (placeholder)
3058     * HttpBrowserCapabilities.cs: Added dummy class (placeholder)
3059     * HtttpCachePolicy.cs: Added dummy class (placeholder)
3060     * HttpClientCertificate.cs: Added dummy class (placeholder)
3061     * HttpSessionState.cs: Added dummy class (placeholder)
3062     * TraceContext.cs: Added dummy class (placeholder)
3063     
3064
3065 2002/04/10  Nick Drochak <ndrochak@gol.com>
3066
3067         * HttpServerUtility.cs: Fix build breaker.
3068
3069 2002-03-28  Wictor Wiln  <wictor@iBizkit.se>
3070
3071         * HttpServerUtils.cs : Added some more functionality
3072         
3073 2002-03-28  Martin Baulig  <martin@gnome.org>
3074
3075         * HttpServerUtils.cs (UrlDecode): You cannot implicitly cast a
3076         char to a string, use ToString() instead.
3077
3078 2002-03-16  Gaurav Vaish  <gavish@iitk.ac.in>
3079
3080         * WebCategoryAttribute.cs
3081                                : Added private attribute.
3082
3083 2002-03-16  Gaurav Vaish  <gavish@iitk.ac.in>
3084
3085         * HttpRuntime.cs       : Stubbed methods for
3086                   FormatStringResource(...) in agreement with the various
3087                   overloads available at String.Format(...)
3088
3089 2002-01-08  Gaurav Vaish  <gavish@iitk.ac.in>
3090
3091         * TODOAttribute.cs     : Added, as an internal class to the assembly
3092
3093 2002-01-03  Nick Drochak  <ndrochak@gol.com>
3094
3095         * HttpRuntime.cs: remove uneeded exception variable from catch and
3096         initialize remaining instance members to avoid compile warnings
3097
3098 2002-01-02  Nick Drochak  <ndrochak@gol.com>
3099
3100         * HttpRuntime.cs: fix spelling error/variable name change.
3101
3102 2001-12-18  Gaurav Vaish <gvaish@iitk.ac.in>
3103
3104         * HttpRuntime.cs       : Initial implementation
3105
3106 2001-08-29  Bob Smith  <bob@thestuff.net>
3107
3108         * HttpWorkerRequest.cs: Partial Implementation.
3109
3110 2001-08-16  Bob Smith  <bob@thestuff.net>
3111
3112          * HttpCookieCollection.cs, HttpCookie.cs: Bug fixes.
3113
3114 2001-08-09  Bob Smith  <bob@thestuff.net>
3115
3116          * BeginEventHandler.cs: Implemented.
3117          * EndEventHandler.cs: Implemented.
3118          * HttpCacheability.cs: Implemented.
3119          * HttpCacheRevalidation.cs: Implemented.
3120          * HttpCacheValidateHandler.cs: Implemented.
3121          * HttpCookieCollection.cs: Implemented.
3122          * HttpCookie.cs: Implemented.
3123          * HttpValidationStatus.cs: Implemented.
3124          * HttpWorkerRequest.EndOfSendNotification.cs: Implemented.
3125          * IHttpAsyncHandler.cs: Implemented.
3126          * IHttpHandler.cs: Implemented.
3127          * IHttpHandlerFactory.cs: Implemented.
3128          * IHttpModule.cs: Implemented.
3129          * ProcessShutdownReason.cs: Implemented.
3130          * ProcessStatus.cs: Implemented.
3131          * TraceMode.cs: Implemented.