XMLHttpRequest send() Method Uploads On Inappropriate HTTP Protocols

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 UTC