These are a few linear spaces allowed in the http header

I am trying to understand http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2

The HTTP / 1.1 header field values ​​can add up to several lines if the continuation line starts with a space or a horizontal tab. All linear white space, including folded, has the same semantics as SP. the receiver MAY replace any linear empty space with one SP before interpreting the field value or forwarding the message downstream.

LWS = [CRLF] 1*( SP | HT ) 

Can I place any number of <CR><LF><SP> without putting a single header value in a row? that is, this is true: Header:<CR><LF><SP><CR><LF><SP>Value

+5
web-standards
source share
1 answer

Yes, but see http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p1-messaging-22.html#rfc.section.3.2.4.p.3 - it is deprecated in the upcoming revision of the HTTP specification .

+5
source

All Articles