121044246 发表于 2014-4-8 23:01:22

求助POST网站登录失败问题

抓包获取资料Request URL:http://gaoyutiyu.ecdrp.com/Home/User/doLogin
Request Method:POST
Status Code:200 OK
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Charset:GBK,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-CN,zh;q=0.8
Connection:keep-alive
Content-Length:147
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Cookie:HistoryItems=79; pgv_pvi=6546234368; HistoryItems=124; HistoryItems=125; HistoryItems=104; HistoryItems=25; HistoryItems=41; HistoryItems=78; HistoryItems=80; HistoryItems=133; HistoryItems=27; HistoryItems=53; HistoryItems=117; HistoryItems=49; HistoryItems=9; HistoryItems=118; HistoryItems=99; HistoryItems=123; HistoryItems=56; HistoryItems=109; HistoryItems=101; HistoryItems=8; HistoryItems=10; HistoryItems=4; HistoryItems=24; HistoryItems=105; think_language=zh-CN; _jzqx=1.1395714846.1396965703.9.jzqsr=gaoyutiyu%2Eecdrp%2Ecom|jzqct=/home/index/index.jzqsr=gaoyutiyu%2Eecdrp%2Ecom|jzqct=/ucenter/index/index; _jzqckmp=1; PHPSESSID=apka7r43s72k2ro9p1nsa0dq74; _jzqa=1.3575388546577684000.1395714846.1396965963.1396969062.27; _jzqc=1; _jzqb=1.1.10.1396969062.1; _qzja=1.450821272.1395714845919.1396965963140.1396969062139.1396967644488.1396969062139.Joanna_lee.1.1.164.27; _qzjb=1.1396965702763.11.0.0.0; _qzjc=1; _qzjto=43.8.0
Host:gaoyutiyu.ecdrp.com
Origin:http://gaoyutiyu.ecdrp.com
Referer:http://gaoyutiyu.ecdrp.com/Home/User/Login?redirect_uri=http%3A%2F%2Fgaoyutiyu.ecdrp.com%2FUcenter%2FIndex%2Findex
User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/3.5 Safari/536.11
X-Requested-With:XMLHttpRequest
Form Dataview URL encoded
m_name:精品男装特价店
m_password:ODg4ODg4MTczNTk5NjMxNw==
verify:0697
savelogin:0
requsetUrl:
Response Headersview source
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:close
Content-Encoding:gzip
Content-Type:application/json; charset=utf-8
Date:Tue, 08 Apr 2014 14:58:23 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Pragma:no-cache
Server:lighttpd/1.4.30
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-Powered-By:PHP/5.3.8POST提交例子:Global $oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("post","http://gaoyutiyu.ecdrp.com/Home/User/doLogin",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.setRequestHeader("Referer","http://gaoyutiyu.ecdrp.com/Home/User/Login?redirect_uri=http%3A%2F%2Fgaoyutiyu.ecdrp.com%2FUcenter%2FIndex%2Findex")
$oHTTP.Send("m_name=%E7%B2%BE%E5%93%81%E7%94%B7%E8%A3%85%E7%89%B9%E4%BB%B7%E5%BA%97&m_password=ODg4ODg4MTczNTk5NjMxNw%3D%3D&verify=&savelogin=0&requsetUrl=")
$sReturn=BinaryToString($oHTTP.responseBody,4)返回$sReturn提示系统发生错误,但好像有时候又成功

121044246 发表于 2014-4-9 20:11:17

论坛最近怎么都没人呢

绿色风 发表于 2014-4-10 11:23:49

这站有验证码

121044246 发表于 2014-4-10 11:29:24

回复 3# 绿色风


    我知道。如果验证码错误返回的应该是验证码错误的信息吧
页: [1]
查看完整版本: 求助POST网站登录失败问题