W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2009

non CHAR characters in headers

From: Adrien de Croy <adrien@qbik.com>
Date: Fri, 12 Jun 2009 17:30:59 +1200
Message-ID: <4A31E813.5060303@qbik.com>
To: HTTP Working Group <ietf-http-wg@w3.org>

I'm seeing a response from a server where the Content-Type value is not 
ASCII

the bytes are 0xFF 0xD0 0xFE etc.

This is illegal correct?  I thought if unicode were being put into 
headers, it needs to be encoded according to one of several standards 
e.g. RFC 2047.  There's no "=?" in there anywhere.

What is a proxy supposed to do in such cases?  There's no information 
upon which to assume the proper format of the value.  I see 4 options.

1. pass bytes through as is and let the client deal with it.
2. strip the header
3. block  the response with an error
4. try and convert.

I'm currently using option 1.  Is this deemed problematic?

Regards

Adrien


-- 
Adrien de Croy - WinGate Proxy Server - http://www.wingate.com
Received on Friday, 12 June 2009 05:28:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:03 GMT