|
1金钱
POST /viplogin.jsp HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://user.ynshangji.com/vip.html
Accept-Language: zh-CN
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: user.ynshangji.com
Content-Length: 52
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: pgv_pvid=9119383808; content=; mima=; pictj=; userstate=; usercode=; userno=; flag=; type=; userflag=; dlcc=0; qqdl=; gjc=; tz=0; ASPSESSIONIDSAQRRDDR=DPOHACOANFFAACEBMPDJOBKL; __qc_wId=941; cookie_name=aoruide1; usnm=aoruide1; ASPSESSIONIDQARQQCDR=LNLPEFOAPLJHGOFJFHEABJDE; cookie%5Fvalue=; username=; safedog-flow-item=E13CC137E540491B512562A09E308968
beforUrl=&cookie_value=aoruide1&userpass=aoruide1234
这是获取的http头
HttpItem item = new HttpItem()
{
URL = "http://user.ynshangji.com/viplogin.jsp",//URL 必需项
Accept = "text/html, application/xhtml+xml, */*",
Referer = "http://user.ynshangji.com/vip.html",
UserAgent="Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)",
Host = "user.ynshangji.com",
Method = "post",//URL 可选项 默认为Get
ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
Postdata = "beforUrl=&cookie_value=aoruide1&userpass=aoruide1234",//Post要发送的数据
};
这是写的代码 但是HttpItem里找不到Accept-Language: zh-CN Accept-Encoding等一些头信息属性啊是不是不需要写还是怎么回事
|
|