Http请求问详解

Http请求问详解:
POST /web/video.do HTTP/1.1
//请求方式:Post 请求路径
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,

application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument,

application/xaml+xml, application/QVOD, application/QVOD, */*
Referer: http://www.secn.com.cn

//从那个页面进入这个页面;进入请求的来源
Accept-Language: zh-cn
//接受的语言
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648;

.NET CLR 3.5.21022)
//用户实用的浏览器的类型
Content-Type: application/x-www-form-urlencoded //必须提供
//这种是通过表单方式发页的
Accept-Encoding: gzip, deflate
//接受经过压缩过的数据
Host: 192.168.1.2:8080
//目前请求的服务器的域名和端口
Content-Length: 46                              //必须提供
//实体数据的长度
Connection: Keep-Alive
//长通信
Cache-Control: no-cache
//无缓存
Cookie: JSESSIONID=3FB72FACE69029EED4C71D89854B1594
//Cookie返回一个cookie

title=23423423gdfgdf&timelength=23&method=save
//这一段代码是经过编码的数据。

你可能感兴趣的:(http)