|
本帖最后由 qq123123 于 2010-10-27 19:22 编辑
;首先,先感谢一下进入此贴寻求帮助和热心帮助AU3迷的人,因为我也是AU3迷,凌晨4点了,还在写脚本!
#include <file.au3>
$name= "13543028893"
$oHTTP = ObjCreate("microsoft.xmlhttp")
$oHTTP.Open("post","https://mail.10086.cn/Register/Default.aspx",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Accept-Language", "zh-cn")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.setRequestHeader("Referer","https://mail.10086.cn/register/Default.aspx")
$oHTTP.Send("__EVENTTARGET=subSendMsm&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwULLTExMjE0NzQ2NjMPFgIeCGNsaWVudGlkAusHFgICAQ9kFgRmDxYCHgdWaXNpYmxlaGQCCg8WAh8BaGRk&txtUserNumber="&$name&"&hdSource=&hdInviteUid=0&hdInviteSeqno=&hdInviteType=&hdInviteGroup=");post关键数据
;~ $oHTTP.responsetext
MsgBox(0,0,$oHTTP.responsetext,1) ;做到这一步了,运行错误
;~ MsgBox(0,0,BinaryToString($oHTTP.responseBody),1)
If StringInStr(BinaryToString($oHTTP.responseBody), "YES") Then
TrayTip('用户已存在', $name, 2)
_FileWriteLog(@ScriptDir & "\已存在账号.log",$name )
EndIf
看到POST功能很强大,自己学习做了个POST,
但是怎么测试都不对,希望高手花2分钟教下小弟,
13543028893 这个号码是已经被注册
13727004206 这个是没有注册
还有一个情况是:由于手机号码欠费停机或者其他原因,您不能注册139邮箱
目的:检测出139的邮箱 号码是否被注册。
脚本要求:检测速度能够快一些。可能会批量查询,自己感觉1秒钟应该能检测出5个。
学习方向:看代码学会 httpwath URL的动作 和 COOKIES
=================下面是httpwath POST 出来的数据==================
=================下面是httpwath POST 出来的数据==================
提交表单 浏览器提交值到 https://mail.10086.cn/Register/default.aspx Completed
Started At 2007-Jan-05 04:07:40.934 (local time) Completed
HTTP Request 无条件发送此请求 https://mail.10086.cn/Register/default.aspx Completed
POST /Register/default.aspx HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: https://mail.10086.cn/Register/
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: mail.10086.cn
Content-Length: 238
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASP.NET_SessionId=tldcja45tm2h21zdwq1lz555
__EVENTTARGET=subSendMsm&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwULLTExMjE0NzQ2NjMPFgIeCGNsaWVudGlkAusHFgICAQ9kFgRmDxYCHgdWaXNpYmxlaGQCCg8WAh8BaGRk&txtUserNumber=13543028893&hdSource=&hdInviteUid=0&hdInviteSeqno=&hdInviteType=&hdInviteGroup=
__EVENTTARGET subSendMsm
__EVENTARGUMENT
__VIEWSTATE /wEPDwULLTExMjE0NzQ2NjMPFgIeCGNsaWVudGlkAusHFgICAQ9kFgRmDxYCHgdWaXNpYmxlaGQCCg8WAh8BaGRk
txtUserNumber 13543028893
hdSource
hdInviteUid 0
hdInviteSeqno
hdInviteType
hdInviteGroup |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
评分
-
查看全部评分
|