aft52577 发表于 2010-10-22 07:44:48

请教帮我分析我的post提交错在哪里

本帖最后由 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)请高手帮忙分析下错在哪里,小弟不甚感激

shano 发表于 2010-10-22 08:55:29

截一下包就知道了    应该是没有带REFERER所以服务器拒绝

aft52577 发表于 2010-10-22 10:03:31

$oHTTP.setRequestHeader("Referer","http://www.jj.cn/reg/reg.html")


己经有这条了,可还是不行

shano 发表于 2010-10-22 22:45:25

你虽然写上了但是发不出去   难道你没截包吗
xmlhttp的问题
页: [1]
查看完整版本: 请教帮我分析我的post提交错在哪里