标签:desc header 支持 odi rac 指定 class ict err
Get https://www.baidu.com/ HTTP/1.1
-------------------------------------------------------------------------------
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,en;q=0.8,zh-TW;q=0.7,ja;q=0.6
Cache-Control: no-cache
Connection: keep-alive
Cookie: ...
Host: www.baidu.com
Pragma: no-cache
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
HTTP/1.1 200 OK
-------------------------------------------------------------------------------
Bdpagetype: 2
Bdqid: 0xd511e4460001e2c0
Cache-Control: private
Connection: Keep-Alive
Content-Encoding: gzip
Content-Type: text/html;charset=utf-8
Date: Mon, 15 Oct 2018 15:34:34 GMT
Expires: Mon, 15 Oct 2018 15:34:34 GMT
Server: BWS/1.1
Set-Cookie: BDSVRTM=223; path=/
Set-Cookie: BD_HOME=1; path=/
Set-Cookie: H_PS_PSSID=1434_21124_26350_20928; path=/; domain=.baidu.com
Strict-Transport-Security: max-age=172800
Transfer-Encoding: chunked
X-Ua-Compatible: IE=Edge,chrome=1
-------------------------------------------------------------------------------
Body...
与HTTP1.x使用起始行来指定URI,请求方法,状态码等不同, HTTP2使用专门的伪头部来实现此目的(以‘:‘作为开头).
所有的伪头部必须在常用首部之前出现.
:authority: developer.mozilla.org
:method: GET
:path: /en-US/docs/Web/HTTP/Basics_of_HTTP
:scheme: https
Referrer Policy: no-referrer-when-downgrade
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,en;q=0.8,zh-TW;q=0.7,ja;q=0.6
cache-control: max-age=0
cookie: ...
referer: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
upgrade-insecure-requests: 1
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
在HTTP2中除了TE头部以外不再有连接相关的头部,包括:Keep-Alive, Proxy-Connection,Transfer-Encoding,和Upgrade等
详情查看[Web高级_Http方法详解]
详情查看[Web高级_Http头部详解]
详情查看[Web高级_Http状态码详解]
refs:
https://tools.ietf.org/html/rfc2616
https://tools.ietf.org/html/rfc7540
https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Status
标签:desc header 支持 odi rac 指定 class ict err
原文地址:https://www.cnblogs.com/full-stack-engineer/p/9926496.html