W3C home > Mailing lists > Public > public-webapi@w3.org > December 2007

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

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 07 Dec 2007 15:28:46 +0100
To: Laurens Holst <lholst@students.cs.uu.nl>
Cc: public-webapi@w3.org
Message-ID: <oolil3djt0g7ne9ud8js8pg1lhc9hg5rcr@hive.bjoern.hoehrmann.de>

* Laurens Holst wrote:
>The send method on the XMLHttpRequest object doesn’t explain what to do 
>when the XMLHttpRequest object has been opened with the GET method, and 
>data is passed to the send method.

That same as would happen with a different method; while this is not
always conforming, all requests can have a body, and my recollection is
the Working Group decided to give no special treatment to GET requests.
If you want the request to have no body, you have to pass nothing or
null to the send method.
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 Friday, 7 December 2007 14:28:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:24 UTC