发现有验证码的后台登录,用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()
|