Re: [XHR] send doesn't explain what to do when method is GET

* Maciej Stachowiak wrote:
>It seems that pending resolution of this issue, it's inappropriate to  
>require XMLHttpRequest implementations to sometimes send requests that  
>may be in violation of the RFC.

In practise implementations have a hard time telling the difference be-
tween conforming and non-conforming requests, simply because they have
been written long before a script asks to make some request and the un-
derlying specifications may well have changed by then.

Tomorrow someone might make two new HTTP methods, one that requires an
entity body and one that prohibits one. Today's implementations cannot
tell the two new methods apart, and would either block legit requests,
or pass through malformed ones. Similarily, existing methods may be
changed one way or the other.

The same is true for headers, header values, entity bodies, and other
features. Ultimately you would be saying that making any requirements
whatsoever is inappropriate as there would be a non-zero chance that
at some point that would require implementations to violate some RFC.

Boris simply wants that implementations can conform to the draft with-
out sending entity bodies in GET requests. If we want to allow that,
we have to explain what they are to do instead (it seems they should
then raise a NotImplemented exception, but that is unfortunately not
possible without breaking content that uses .send('') as is somewhat
common).
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Sunday, 9 December 2007 20:39:24 UTC