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

Re: XMLHttpRequest.setRequestHeader with non-ASCII strings

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 20 Sep 2006 11:07:34 -0000
To: "Cameron McCormack" <cam@mcc.id.au>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <op.tf5cb6d664w2qv@id-c0020.emi.ac.ma>

On Fri, 31 Mar 2006 08:57:48 -0000, Cameron McCormack <cam@mcc.id.au>  
wrote:
> I asked on #webapi the other day what XHR should do if setRequestHeader
> is called with strings that contain non-ASCII characters, since that's
> not allowed by HTTP.  Anne suggested I make a test, so here is one
> (temporarily, at least):

Thanks for this. We decided that it would make the most sense to throw an  
exception (SYNTAX_ERR) if the header or value doesn't match the production  
given in HTTP. This is the same for getResponserHeader, obviously...


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 20 September 2006 11:07:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:55 GMT