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

XHR LC comment: Accept header went from MUST NOT to SHOULD

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Thu, 15 May 2008 20:56:42 +0200
Message-ID: <482C876A.2070205@students.cs.uu.nl>
To: "Web API WG (public)" <public-webapi@w3.org>
The current CVS version says that:

    “Unless set through |setRequestHeader()
<http://dev.w3.org/cvsweb/%7Echeckout%7E/2006/webapi/XMLHttpRequest/Overview.html?rev=1.176&content-type=text/html;%20charset=iso-8859-1#setrequestheader>| 

user agents /should/ set the |Accept| and |Accept-Language| headers as
well.”

This was originally

    “it /must not/ automatically set the |Accept|.”

Why was this changed? Why should user agents pretend that they know what
kind of resource the user expects by setting an Accept header that is
unreliable? FWIW, Internet Explorer and Safari set the (reasonably
acceptable */*), but it would be better to leave it out entirely. Also see:

http://www.grauw.nl/blog/entry/470


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.



Received on Thursday, 15 May 2008 18:58:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 15 May 2008 18:58:12 GMT