【问题标题】:Can "Connection: close" header appear anywhere in headers?“连接:关闭”标题可以出现在标题中的任何位置吗?
【发布时间】:2013-11-21 15:39:14
【问题描述】:

“连接:关闭”标头可以出现在标头中的任何位置 - 还是应该是最后一个标头?

stan@stan-pc:~$ siege -g http://somesite.com/file.mp3
HEAD /file.mp3 HTTP/1.1
Host: somesite.com
Accept: */*
Accept-Encoding: 
User-Agent: JoeDog/1.00 [en] (X11; I; Siege 3.0.1)
Connection: close


HTTP/1.1 200 OK
Server: Apache/2.2.22 (Ubuntu)
X-Powered-By: PHP/5.3.10-1ubuntu3.8
Last-Modified: Sun, 08 Mar 2009 17:00:01 GMT
Content-Type: audio/mpeg
Accept-Ranges: bytes
Date: Thu, 21 Nov 2013 15:34:59 GMT
X-Varnish: 2281136124
Age: 0
Via: 1.1 varnish
Connection: close
X-Cache: MISS


stan@stan-pc:~$ 

正在尝试对未提供的 mp3 文件进行故障排除。

【问题讨论】:

    标签: apache http http-headers


    【解决方案1】:

    它可以出现在任何地方。标题字段顺序通常是无关紧要的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-22
      • 2014-02-01
      相关资源
      最近更新 更多