码迷,mamicode.com
首页 > Web开发 > 详细

http 请求报文和应答报文

时间:2018-03-30 10:47:46      阅读:370      评论:0      收藏:0      [点我收藏+]

标签:网络

请求报文

POST /cgi-bin/httpconn HTTP/1.1

POST:请求地址

Host: 111.161.64.121

HOST:主机头

Accept: /

Accept :accept 属性

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

U-A:客户端类型

Connection: Keep-Alive

connection: :keep-Alive 持续连接

Cache-Control: no-cache

cache-control:缓存管理

Accept-Encoding: gzip, deflate

Accept-enconding: 支持压缩

Content-Type: application/octet-stream

content-type:传输类型

Content-Length: 218

content-length:传输长度

响应报文

HTTP/1.1 200 OK

HTTP:200成功返回值正常

Server: httpsf2

server:主机类型

Connection: Keep-alive

Connection:持续可连接

Content-Type: text/octet

Content-Type:传输类型

Content-Length: 2291

Content-Length:传输长度

http 请求报文和应答报文

标签:网络

原文地址:http://blog.51cto.com/13680639/2092700

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!