W3C home > Mailing lists > Public > public-webapi@w3.org > May 2006

handling of POST in XMLHTTPRequest.

From: <David.Carson@nokia.com>
Date: Wed, 3 May 2006 15:18:41 -0400
Message-ID: <7B3156C720588B4CAEA4BF8013CD525F01609E0F@bsebe101.NOE.Nokia.com>
To: <public-webapi@w3.org>

Hi All,
We have recently run into a case where XMLHTTPRequest is being used to
POST content, but the javascript author has failed to add the mandatory
content-type header. We were wondering what the default content type
should be. We believe that it should be the same default as the default
content type for a FORM post.
Oddly enough, the w3 draft spec for xmlhttprequest does not even state
that you should provide a content-type when posting:
whereas XULPlanet at least states one should be provided:
"The MIME type of the stream should be specified by setting the Content-
Type header via the setRequestHeader method before calling send."
neither say what the default should be.

David Carson
Nokia S60 Browser
Received on Wednesday, 3 May 2006 19:28:50 UTC

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