W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2002

A string of text is parsed as a single word

From: Alex Rousskov <rousskov@measurement-factory.com>
Date: Thu, 1 Aug 2002 18:07:56 -0600 (MDT)
To: ietf-http-wg@w3.org
Message-ID: <Pine.BSF.4.10.10208011756390.63837-100000@measurement-factory.com>

Hi there,

	What are the values of a header field token in the following

	(a) Extension: foo
	(b) Extension: "foo bar"
	(c) Extension: foo" bar "baz
	(d) Extension: foo" bar "baz blah

By value I mean whatever a program would use internally in comparison
expressions and such. "Extension" above is used as an example only;
any header field with *token-based value would do. 

Here is what I would answer based on RFC 2616, Section 2.2 "Basic Rules"
('<' and '>' are added for clarity, they are not a part of the value):

	(a) a single word <foo>
	(b) a single word <foo bar>
	(c) a single word <foo bar baz>
	(c) two words <foo bar baz> and <blah>

Note how I stripped quotes from the values.

Is my interpretation correct?

Thank you,

Received on Thursday, 1 August 2002 20:07:57 UTC

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