1
elden 2013-06-08 22:45:24 +08:00
header的字段值可以包含换行符,但后面必需跟有空格或tab,否则后面的字符就会被当做下一个字段来解析。
|
2
pyKun OP https://docs.djangoproject.com/en/dev/ref/request-response/
django的处理,不可以包含 |
4
pyKun OP |
5
elden 2013-06-08 22:55:54 +08:00
@pyKun tab是\t
rfc2616 2.2 http://www.w3.org/Protocols/rfc2616/rfc2616.txt "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." |
7
pyKun OP |