HTTP request format and HTTP response format

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.