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
examples:

	(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,

Alex.
Received on Thursday, 1 August 2002 20:07:57 GMT

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