具体的是\n
carriage return
(没有\t)
在curl的文档里有提到:
curl will make sure that each header you add/replace is sent with the proper end-of-line marker, you should thus not add that as a part of the header content: do not add newlines or carriage returns, they will only mess things up for you.
但是我想要到http协议的依据,这样是不行的
例如这里
http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2
有http的协议说header line是不能包括回车,必须要quote的么?
carriage return
(没有\t)
在curl的文档里有提到:
curl will make sure that each header you add/replace is sent with the proper end-of-line marker, you should thus not add that as a part of the header content: do not add newlines or carriage returns, they will only mess things up for you.
但是我想要到http协议的依据,这样是不行的
例如这里
http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2
有http的协议说header line是不能包括回车,必须要quote的么?