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

[网络通信] 请教帮我分析我的post提交错在哪里

[复制链接]
发表于 2010-10-22 07:44:48 | 显示全部楼层 |阅读模式
本帖最后由 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)
请高手帮忙分析下错在哪里,小弟不甚感激
发表于 2010-10-22 08:55:29 | 显示全部楼层
截一下包就知道了    应该是没有带REFERER  所以服务器拒绝
 楼主| 发表于 2010-10-22 10:03:31 | 显示全部楼层
$oHTTP.setRequestHeader("Referer","http://www.jj.cn/reg/reg.html")


己经有这条了,可还是不行
发表于 2010-10-22 22:45:25 | 显示全部楼层
你虽然写上了  但是发不出去   难道你没截包吗
xmlhttp的问题
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-16 02:57 , Processed in 0.077913 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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