【发布时间】:2014-03-16 02:48:11
【问题描述】:
在研究 HTTP 协议时,我在响应头字段中看到了这一点:
x-ec-custom-error: 1
我正在使用 netcat 通过代理连接获取 example.com 的主页。
这是出现此标头的所有控制台通信:
$ nc -x (omitted proxy address):3128 -Xconnect www.example.com 80
GET http://www.example.com/ HTTP/1.1
Host: www.example.com
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=604800
Content-Type: text/html
Date: Fri, 07 Mar 2014 20:08:45 GMT
Etag: "359670651"
Expires: Fri, 14 Mar 2014 20:08:45 GMT
Last-Modified: Fri, 09 Aug 2013 23:54:35 GMT
Server: ECS (iad/19AB)
X-Cache: HIT
x-ec-custom-error: 1 <----------------HERE
Content-Length: 1270
(Omitted message body)
注意到之后,我尝试在谷歌和这个网站上彻底搜索,但我在任何地方都没有找到答案,与我讨论这个问题的人也没有。
提前感谢所有答案。
【问题讨论】:
标签: http http-headers netcat