找回密码
 加入
搜索
查看: 5154|回复: 3

[IE类操作] 求助POST网站登录失败问题

[复制链接]
发表于 2014-4-8 23:01:22 | 显示全部楼层 |阅读模式
抓包获取资料
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]=79; pgv_pvi=6546234368; HistoryItems[124]=124; HistoryItems[125]=125; HistoryItems[104]=104; HistoryItems[25]=25; HistoryItems[41]=41; HistoryItems[78]=78; HistoryItems[80]=80; HistoryItems[133]=133; HistoryItems[27]=27; HistoryItems[53]=53; HistoryItems[117]=117; HistoryItems[49]=49; HistoryItems[9]=9; HistoryItems[118]=118; HistoryItems[99]=99; HistoryItems[123]=123; HistoryItems[56]=56; HistoryItems[109]=109; HistoryItems[101]=101; HistoryItems[8]=8; HistoryItems[10]=10; HistoryItems[4]=4; HistoryItems[24]=24; HistoryItems[105]=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.8
POST提交例子
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提示系统发生错误,但好像有时候又成功
 楼主| 发表于 2014-4-9 20:11:17 | 显示全部楼层
论坛最近怎么都没人呢
发表于 2014-4-10 11:23:49 | 显示全部楼层
这站有验证码
 楼主| 发表于 2014-4-10 11:29:24 | 显示全部楼层
回复 3# 绿色风


    我知道。如果验证码错误返回的应该是验证码错误的信息吧
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-17 02:57 , Processed in 0.083183 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表