[Mono-dev] HttpWebRequest method patch

Gert Driesen gert.driesen at telenet.be
Mon Jan 29 16:27:44 EST 2007



> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-
> bounces at lists.ximian.com] On Behalf Of Robert Jordan
> Sent: maandag 29 januari 2007 12:47
> To: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] HttpWebRequest method patch
> 
> Hi Atsushi,
> 
> Atsushi Eno wrote:
> > Well, it is very good idea to report this BUG to Microsoft and
> > let them fix it. I will do that unless someone points out that
> > our (a couple of lingr users') interpretation is wrong.
> >
> > I rather want judgement of the spec situation: whether HTTP methods
> > like "posT" must retrieve request/response stream like POST.
> 
> Since Apache & IIS are both accepting case-insensitive method names
> it's a good idea to switch to POST-like behavior in HttpWebRequest,
> as implied by your patch.

I've added two unit tests (currently marked NotWorking) for this to
HttpWebRequestTest.cs.

These shows that on .NET 1.1 the method is left untouched, while on .NET 2.0
known HTTP methods are transformed to uppercase.

To determine whether a body is allowed, a case-insensitive comparison should
be performed on both 1.0 and 2.0 profiles.
 
Gert




More information about the Mono-devel-list mailing list