Previous post:http://www.cnblogs.com/taoshihan/p/5346731.html
HTTP Request
Request Line
Get/taoshihan/p/5346731.html http/1.1
Request Method-Request Resource name-the protocol to be followed
(POST,GET,DELETE,PUT,HEAD ,OPTIONS,TRACE)
GET General requirements cannot exceed 1k,POST transmission No size limit
Request Header
Host: www.cnblogs.com
Host Name
Connection:keep-alive
Connection Information
Pragma:no-cache
Cache-control:no-cache
accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Acceptable: File type
Upgrade-insecure-requests:1
user-agent:mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/45.0.2454.101 safari/537.36
Client Information
Referer:http://zzk.cnblogs.com/s?w=blog%3ataoshihan%20%e5%8d%8f%e8%ae%ae
Source Address
Accept-encoding:gzip, deflate, SDCH
Acceptable encoding: Compression
accept-language:zh-cn,zh;q=0.8
Acceptable language: Chinese
Response header
http/1.1 OK
Protocol version-Status code
Date:thu, 03:47:48 GMT
content-type:text/html; Charset=utf-8
The content type and encoding returned
Transfer-encoding:chunked
Data transfer mode: block
Connection:keep-alive
Vary:accept-encoding
Cache-control:private, max-age=10
Notifies the browser whether to cache
Expires:thu, 03:47:58 GMT
Notifies the browser to cache resources to a specified point in time
Last-modified:thu, 03:47:48 GMT
Implementing the Cached
x-ua-compatible:ie=10
Content-encoding:gzip
Content encoding: Compression
Status code
200~299 successfully received
300~399 Resource Transfer 302(redirected),304(using cache),307
400~499 request error 404 not found
500~599 Server Internal error
[Java EE] HTTP protocol details