W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2012

[XHR] Setting the User-Agent header

From: Mark Nottingham <mnot@mnot.net>
Date: Wed, 5 Sep 2012 14:03:35 +1000
Message-Id: <0A675538-DE62-4B76-A62B-5745ECFFA015@mnot.net>
To: public-webapps@w3.org
The current draft of XHR2 doesn't allow clients to set the UA header.

That's unfortunate, because part of the intent of the UA header is to identify the software making the request, for debugging / tracing purposes. 

Given that lots of libraries generate XHR requests, it would be natural for them to identify themselves in UA, by appending a token to the browser's UA (the header is a list of product tokens).  As it is, they have to use a separate header.

I understand that it may not be desirable to allow UA to be overwritten, but making it append-only would be valuable...

Cheers,


--
Mark Nottingham   http://www.mnot.net/
Received on Wednesday, 5 September 2012 04:04:01 GMT

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