W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2010

XMLHttpRequest send() Method Uploads On Inappropriate HTTP Protocols

From: Hans Meiser <brille1@hotmail.com>
Date: Tue, 23 Feb 2010 11:06:20 +0100
Message-ID: <SNT130-w43A01CF64C1AFA606EC6E9E2420@phx.gbl>
To: <public-webapps@w3.org>

Hello,

I noticed that the Mozilla XMLHttpRequest send() method implementation uploads POST data on any protocol other than GET. According to a discussion at Bugzilla, this is due to the specs:

http://www.w3.org/TR/XMLHttpRequest/#the-send-method

I believe this spec ought to be updated to also exclude POST data from being uploaded for HTTP request methods like DELETE, TRACE, OPTIONS.

Plus, I believe upload should be allowed to be send along with HEAD requests, because if the page would usually respond to POST requests, it can only return useful results like Content-length if the HEAD request would upload the same data as POST.

For further details on this discussion please refer to:

https://bugzilla.mozilla.org/show_bug.cgi?id=547205

Regards,
Axel Dahmen
www.axeldahmen.de
 		 	   		  
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969
Received on Tuesday, 23 February 2010 10:06:54 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:37 GMT