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

Re: header parsing, trailing OWS

From: Julian Reschke <julian.reschke@gmx.de>
Date: Thu, 08 Oct 2009 16:39:48 +0200
Message-ID: <4ACDF9B4.3090307@gmx.de>
To: Mark Nottingham <mnot@mnot.net>
CC: Adrien de Croy <adrien@qbik.com>, David Morris <dwm@xpasc.com>, ietf-http-wg@w3.org
Mark Nottingham wrote:
> That's taking it way too far, and would make many (most?) intermediaries 
> non-conformant. An intermediary can't and shouldn't have to mess with 
> headers that it doesn't care about. It's enough to say that such OWS is 
> to be ignored when a header is interpreted.


What's important is to clarify that leading and trailing whitespace is 
not part of the field value. (note that we're planning to change the 
ABNF fragments for header fields, so those will no longer contain the 
header name, colon, and surrounding whitespace; essentially what the *-v 
productions already show)

What follows from that, but doesn't necessarily need to spelled, is:

1) intermediaries may or may not throw them away

2) APIs may or may not throw them away

3) the semantics of header field definitions must not rely on the 
presence or absence of leading/trailing whitespace

WRT 3 we may want to add a specific section giving guidelines for 
defining new headers; these would also point out the importance of the 
#list rule, character encoding considerations and so on. I think most of 
this currently lives in 
but it could be separated out into a new subsection.

BR, Julian
Received on Thursday, 8 October 2009 14:40:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:10:52 UTC