[Mono-dev] HttpWebRequest method patch

Miguel de Icaza miguel at novell.com
Thu Feb 1 11:12:35 EST 2007


Hey,

> > Without doubt, the HTTP RFC states that method is case-sensitive. But then
> > again, the question (at least for me) is whether we want to follow MS on
> > this one ?
> >
> > It might be a good idea to clearly state this (to finish up the thread) as
> > this probably also affects other classes (such as HttpListener).
> >
> > Shouldn't we have Gonzalo's take on this, as he's the maintainer of the HTTP
> > stack ?
> 
> The RFC also states (or perhaps it's another RFC...) that we should
> behave according to the rules when sending data and be prepared to
> receive data that is not strictly correct. So If we want to be able to
> receive and process a "gEt" as "GET", I'm all for that, but I would
> not change our code to send anything that does not follow the RFC.

We probably should send the same verb that the user requested, so if the
user says the verb is "get" we should send "get", not "GET".

The issue seems to be that our processing of the stream will vary
depending on the method name (a few verbs are handled differently, like
"POST")

Miguel



More information about the Mono-devel-list mailing list