2011-05-24 40 views
0

HTTP/1.1报头字段值可以 折叠到多行,如果
续行具有空间 或水平制表开始。所有线性白色 空间(包括折叠)与SP具有相同的 语义。解释 字段值或转发邮件 下游前受者 更换一个 单SP任何线性空白。(从here报价)那么nginx是不是正确解释折叠标题?

这里是我的服务器端脚本,这只是转储cookie的内容:

var_dump($_COOKIE);exit; 

这里说到我的测试,请注意cookie的一部分:

GET /logtest.php HTTP/1.1 
Host: localhost 
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.17) Gecko/20110420 AlexaToolbar/alxf-2.11 Firefox/3.6.17 
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 
Accept-Language: zh-cn,zh;q=0.5 
Accept-Encoding: gzip,deflate 
Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7 
Keep-Alive: 115 
Cookie: A=t; 
artDate=t 
Cache-Control: max-age=0 

HTTP/1.1 200 OK 
Server: iis/8.0 
Date: Mon, 23 May 2011 12:38:00 GMT 
Content-Type: text/html 
Transfer-Encoding: chunked 
Connection: keep-alive 
Keep-Alive: timeout=20 
X-Powered-By: PHP/5.3.2 
Set-Cookie: ZDEDebuggerPresent=php,phtml,php3; path=/ 

27 
array(1) { 
      ["A"]=> 
        string(1) "t" 
            } 

0 

GET /logtest.php HTTP/1.1 
Host: localhost 
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.17) Gecko/20110420 AlexaToolbar/alxf-2.11 Firefox/3.6.17 
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 
Accept-Language: zh-cn,zh;q=0.5 
Accept-Encoding: gzip,deflate 
Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7 
Keep-Alive: 115 
Cookie: A=t; 
artDate=t 
Cache-Control: max-age=0 

HTTP/1.1 200 OK 
Server: iis/8.0 
Date: Mon, 23 May 2011 12:38:11 GMT 
Content-Type: text/html 
Transfer-Encoding: chunked 
Connection: keep-alive 
Keep-Alive: timeout=20 
X-Powered-By: PHP/5.3.2 
Set-Cookie: ZDEDebuggerPresent=php,phtml,php3; path=/ 

27 
array(1) { 
      ["A"]=> 
        string(1) "t" 
            } 

0 

GET /logtest.php HTTP/1.1 
Host: localhost 
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.17) Gecko/20110420 AlexaToolbar/alxf-2.11 Firefox/3.6.17 
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 
Accept-Language: zh-cn,zh;q=0.5 
Accept-Encoding: gzip,deflate 
Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7 
Keep-Alive: 115 
Cookie: A=t;artDate=t 
Cache-Control: max-age=0 

HTTP/1.1 200 OK 
Server: iis/8.0 
Date: Mon, 23 May 2011 12:38:55 GMT 
Content-Type: text/html 
Transfer-Encoding: chunked 
Connection: keep-alive 
Keep-Alive: timeout=20 
X-Powered-By: PHP/5.3.2 
Set-Cookie: ZDEDebuggerPresent=php,phtml,php3; path=/ 

47 
array(2) { 
      ["A"]=> 
        string(1) "t" 
            ["artDate"]=> 
                string(1) "t" 
                   } 

0 

回答

1

这是一个known issue没有高优先级。

+0

低优先级的一个原因是折旧弃用http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-13#section-3.2 – hultqvist 2013-06-06 21:38:21