HTTP request Format "
GET {} http/1.1\r\nhost: {}\r\nconnection\r\n\r\n ". Format (path, host)
Request headerget/http/1.1
Host:www.baidu.com
Connection:keep-alive
Upgrade-insecure-requests:1
user-agent:mozilla/5.0 (Windows NT 6.1; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/66.0.3359.139 safari/537.36
accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-encoding:gzip, deflate, BR
accept-language:zh-cn,zh;q=0.9
cookie:pgv_pvi=7145755648; baiduid=28dec113c666529ba3cda3d7b9bb371f:fg=1; bidupsid=28dec113c666529ba3cda3d7b9bb371f; pstm=1531802555; bd_upn=12314353; HTTP Response Format bdorz=b490b5ebf6f3cd402e515d22bcda1598 HTTP response format
http/1.1 OK
Bdpagetype:1
bdqid:0xe23fd0420000b189
Cache-control:private
Connection:keep-alive
Content-encoding:gzip
Content-type:text/html
cxy_all:baidu+1302051616dc8b2d14e6f36b4bbd9140
date:wed, Jul 2018 05:08:29 GMT
expires:wed, Jul 2018 05:07:40 GMT
server:bws/1.1
set-cookie:bdsvrtm=0; path=/
set-cookie:bd_home=0; path=/
set-cookie:h_ps_pssid=1423_21116_18559_26350_22159; path=/; Domain=.baidu.com
strict-transport-security:max-age=172800
Vary:accept-encoding
X-ua-compatible:ie=edge,chrome=1
Transfer-encoding:chunked
HTTP request format and HTTP response format