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

[AU3基础] 有验证码的登录,怎么POST

[复制链接]
发表于 2016-9-18 16:05:35 | 显示全部楼层 |阅读模式
发现有验证码的后台登录,用POST提交,登录不成功。请问如何解决?
$PostPage = 'http://member.sooshong.com/member/login.jsp'
$xmlHttpReq = ObjCreate("MSXML2.XMLHTTP.3.0")

If @error = 0 Then 
        $xmlHttpReq.open("POST",$PostPage,false)
        $xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded')
        $xmlHttpReq.send('UserName=diandianla&UserPass=command&gourl=http%3A%2F%2Fmember.sooshong.com%2Fmember%2Finfo_pub.jsp&check_key=2dd400bc-5e1f-42c5-bc62-9c9b4cd19d10&check_address=sverify.touclick.com%2Csverify.touclick')
        $Content = BinaryToString($xmlHttpReq.responseBody,1)
        MsgBox (0,"",$Content)
 If  StringRegExp($Content,'发布供求信息',0) Then
         MsgBox(0,"","登录成功!")
 Else
         MsgBox(0,"","登录失败!")
         EndIf
        
                
        EndIf

$xmlHttpReq.abort()
 楼主| 发表于 2016-9-18 16:06:20 | 显示全部楼层
坐等高手解决!!!
发表于 2016-9-18 23:58:44 | 显示全部楼层
我看还是洗洗睡吧。。。
发表于 2016-9-19 11:14:15 | 显示全部楼层
带着验证码一起POST
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-3-28 22:06 , Processed in 0.078914 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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