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

Re: Connection: "close" — Case sensitive or not?

From: Henrik Nordstrom <henrik@henriknordstrom.net>
Date: Mon, 10 Dec 2007 04:59:21 +0100
To: Geoffrey Sneddon <foolistbar@googlemail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-Id: <1197259161.20519.28.camel@henriknordstrom.net>
On sön, 2007-12-09 at 22:51 +0000, Geoffrey Sneddon wrote:
> For compatibility with the web, the "close" connection option needs to  
> be treated case insensitively. My reading of the spec gives me the  
> impression that this should be a case sensitive comparison, unlike any  
> other connection-token (which, as a header name, would be compared  
> case insensitively).

Can't say the specs says either way on this.. There is no BNF for the
"close" Connection token, and no indication in the text if it's case
sensitive or not..

which makes me read it as

SHOULD be sent lowercase, but recipients SHOULD compare
case-insensitive.


There is this catch-all BNF syntax definition which kind of sets the
default expectation on case-insensitive

   "literal"
      Quotation marks surround literal text. Unless stated otherwise,
      the text is case-insensitive.

but as there is no BNF for this token it's somewhat unclear if this
applies.. but I have a feeling there should be.. and as it isn't
explicitly stated I think the general rule regarding literal text tokens
should be used, which means case-insensitive.

Regards
Henrik

Received on Monday, 10 December 2007 03:59:34 GMT

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