Re: non ascii character in headers?

On 02.03.2010 00:49, Brendan Miller wrote:
> I'm looking at a possible bug in my companies http handling library.
> The code seems to assume that there are no bytes with the higher order
> bit set in the http Location header. I'm thinking this will break if
> the Location header's URI contains non-ascii characters.

In which case it wouldn't be a valid URI.

> Is my thinking correct, or is there some rule that prohibits non-ascii
> chars in an http header?

Valid URIs never contain non-ASCII characters.

That doesn't mean it doesn't happen in the wild, though.

Best regards, Julian

Received on Tuesday, 2 March 2010 13:17:51 UTC