W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2005

Re: Linear whitespace

From: Marc Schneider <mschneider@opnet.com>
Date: Wed, 04 May 2005 13:01:49 -0400
Message-Id: <>
To: ietf-http-wg@w3.org
Looking further in the RFC, I see that extra <CR> and <LF> characters are 
explicitly prohibited from the request line in section 5.1. So ignore the 

At 12:50 PM 5/4/2005, Marc Schneider wrote:
>At the end of section 2.1 of RFC 2616 there is a rule about implied linear 
>implied *LWS
>The grammar described by this specification is word-based. Except where 
>noted otherwise, linear white space (LWS) can be included between any two 
>adjacent words (token or quoted-string), and between adjacent words and 
>separators, without changing the interpretation of a field. At least one 
>delimiter (LWS and/or separators) MUST exist between any two tokens (for 
>the definition of "token" below), since they would otherwise be 
>interpreted as a single token.
>And in section 2.2 a definition of LWS is given
>HTTP/1.1 header field values can be folded onto multiple lines if the 
>continuation line begins with a space or horizontal tab. All linear white 
>space, including folding, has the same semantics as SP. A recipient MAY 
>replace any linear white space with a single SP before interpreting the 
>field value or forwarding the message downstream.
>LWS            =
>[CRLF] 1*( SP | HT )
>Does the optional carriage return linefeed at the beginning of the LWS 
>only apply to headers? Or can this CRLF appear between any two words or 
>between a word an separator?
>For example, is the following valid?
>Marc Schneider
>Senior Software Engineer
>OPNET Technologies, Inc. (NASDAQ: OPNT)
>tel: +1.240.497.3000
>fax: +1.240.497.3001
>Register for OPNET's Online Technology Workshops
>Register for OPNETWORK 2005 (August 22-26, Washington DC)

Marc Schneider
Senior Software Engineer

OPNET Technologies, Inc. (NASDAQ: OPNT)
tel: +1.240.497.3000
fax: +1.240.497.3001

Register for OPNET's Online Technology Workshops
Register for OPNETWORK 2005 (August 22-26, Washington DC)
Received on Wednesday, 4 May 2005 17:01:57 UTC

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