HTTP Headers 备忘

  在日常开发工作中经常要用到这些东西,例如缓存控制,页面压缩编码等等。在此记下几个链接,以备日后查找。

HTTP Headers快速参考

W3C关于HTTP Headers的详细说明

HTTP请求和响应Headers在线查看

利用telnet获取http头信息

You can see the HTTP (hypertext transfer protocol) header from a web site using the standard Telnet program that comes with Windows. For example, to see the header from the root page of the Microsoft web site, do these steps:

1. Start a DOS command prompt
2. From the command prompt type

telnet www.microsoft.com 80

3. Turn on localecho so you can see what you are doing.
3.1. Type Ctrl+] (hold down the Ctrl key and press the right bracket)
3.2. Type

set localecho

3.3. Press Enter on a blank line
4. type

GET HTTP/1.1
Host
www.microsoft.com

5. Press Enter twice