本帖最后由 aft52577 于 2010-10-22 08:34 编辑
我截取得注册JJ游戏的封包
注册地址 :http://www.jj.cn/reg/reg.html
封包如下
POST /reg/userReg.php 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, application/QVOD, application/QVOD, */*
Referer: http://www.jj.cn/reg/reg.html
Accept-Language: zh-cn,en;q=0.5
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727)
Host: jj.cn
Content-Length: 155
Connection: Keep-Alive
Cache-Control: no-cache
jjSiteId=&username=nef4835372&usernameiserror=1&password=qq123456&repassword=qq123456&nickname=&figureid=0&promoterid=&newusercode=&userselect=on&getcode=0
做成au3 源码 如下,却为什么,始终是错误的呢
au3 源码 如下。$oHTTP = ObjCreate("microsoft.xmlhttp")
$oHTTP.Open("post","http://jj.cn/reg/userReg.php",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.setRequestHeader("Referer","http://www.jj.cn/reg/reg.html")
$oHTTP.setRequestHeader("Content-Length","155")
$oHTTP.Send("jjSiteId=&username=adjklfsgrss&usernameiserror=1&password=qq123456&repassword=qq123456&nickname=&figureid=0&promoterid=&newusercode=&userselect=on&getcode=0")
$a = $oHTTP.responseText
MsgBox(0,0,$a)
请高手帮忙分析下错在哪里,小弟不甚感激 |