Article Directory
HTTP/1.1 200 OK
Bdpagetype: 1
Bdqid: 0x87b0208600091dd6
Cache-Control: private
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/html
Cxy_all: baidu+47d26b53b8e759d193c0ddcc9480a388
Date: Sun, 19 Jan 2020 10:51:51 GMT
Expires: Sun, 19 Jan 2020 10:51:51 GMT
Server: BWS/1.1
Set-Cookie: delPer=0; path=/; domain=.baidu.com
Set-Cookie: BDSVRTM=19; path=/
Set-Cookie: BD_HOME=0; path=/
Set-Cookie: H_PS_PSSID=1456_21104_30494_26350_30500; path=/; domain=.baidu.com
Strict-Transport-Security: max-age=172800
Traceid: 157943111103799843949777350550919650774
Vary: Accept-Encoding
X-Ua-Compatible: IE=Edge,chrome=1
Transfer-Encoding: chunked
First, the response line
HTTP/1.1 200 OK
HTTP/1.1 | Protocol / version |
200 | The response status code |
OK | Status Code Description |
The response status code
Response status code: This tells the browser to the server and requests a corresponding status.
Status code corresponding roughly classified into five kinds.
1xx | The server receiving the client message, but does not receive complete, after a period, the transmission status code 1xx (rare) |
2xx | success. representative:200(成功) |
3xx | Redirection. Representative:302(重定向) ,304(访问缓存) |
4xx | Client error. representative:404(请求路径没有对应的资源) 405(请求方式没有对应的doXX方法) |
5xx | Server error. representative:500(服务器内部出现异常) |
Second, the response header
Common response headers
First name / value | Explanation |
---|---|
Content-Type: text/html ;UTF-8 |
The server tells the client the response body ends数据格式以及编码格式 |
Content-Length :101 | In response to the number of heads |
Content-disposition |
The server tells the 以什么格式打开相应体数据 client . The default is in-line: page opens in the current, attachment: Open the response header (file download) as an attachment. |
Third, the blank line in response
For dividing the response header and the response thereof.
Fourth, the response body
The response is the page displayed content.