HTTP头部可以有多个线性空格吗?

5
我正在尝试理解http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2

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 )

我可以在没有放置任何标题值的情况下放置任意数量的<CR><LF><SP>吗? 也就是说,这样是有效的:Header:<CR><LF><SP><CR><LF><SP>Value


相关链接:https://dev59.com/oF0Z5IYBdhLWcg3wpRhW - Pacerier
1个回答

6

嗯,所以现在世界上不再使用fgets()了 (-: - vrdhn

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接