http 301 302 回应帧例子

来源:互联网 发布:nsga python 编辑:程序博客网 时间:2024/04/29 21:47

此文版权属于作者所有,任何人、媒体或者网站转载、借用都必须征得作者本人同意!

GET http://192.168.43.27/a.html HTTP/1.1

Host: 192.168.43.27
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8

HTTP/1.1 301 Moved Permanently
Date: Tue, 13 Aug 2013 02:02:15 GMT
Server: Apache/2.2.22 (Ubuntu)
Location: http://192.168.43.27/b.html
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 247
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

HTTP/1.1 302 Found
Date: Tue, 13 Aug 2013 02:04:14 GMT
Server: Apache/2.2.22 (Ubuntu)
Location: http://192.168.43.27/b.html
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 240
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1