找回密码
 加入
搜索
查看: 2387|回复: 4

用XML做 POST的问题!

[复制链接]
发表于 2009-7-26 14:34:54 | 显示全部楼层 |阅读模式
POST /api/gateway.php HTTP/1.1..
Accept: */*..Accept-Language: zh-CN..
Referer: http://duowan.boyaa.com/dwcore/t ... 0..x-flash-version: 10,0,12,36..
Content-Type: application/x-amf..
Content-Length: 89..
Accept-Encoding: gzip, deflate..
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)..
Host: duowan.boyaa.com..
Connection: Keep-Alive..
Cache-Control: no-cache............MemberBonus.fetch../2...8......AE.Z...... 63681b94090c5fe967e98468721f0fc4...5555


上面是我拦截到的内容

我用如下代码尝试

$xmlhttp=ObjCreate("Microsoft.XMLHTTP")
$poststr="MemberBonus.fetch../2...8......AE.Z...... 63681b94090c5fe967e98468721f0fc4...5555"
$xmlhttp.open("post","/api/gateway.php","false")
$xmlhttp.setRequestHeader("Content-Type","application/x-amf")
$xmlhttp.setRequestHeader("Referer","http://duowan.boyaa.com/dwcore/texas.swf?flashver=2.0.0")

$xmlhttp.send($poststr)

提示:
>运行:(3.2.13.7):H:\autoit3\autoit3.exe "H:\autoit3\验证码\test.au3"   
H:\autoit3\???\test.au3 (6) : ==> ??????(?????).:
$xmlhttp.open("post","/api/gateway.php","false")
$xmlhttp.open("post","/api/gateway.php","false")^ ERROR

请高手帮忙一下,我这样操作有些什么问题,谢谢!
发表于 2009-7-26 21:07:46 | 显示全部楼层
路径错误呢!
/api/gateway.php  这个要全路径的!
 楼主| 发表于 2009-7-27 10:50:49 | 显示全部楼层
我这个不是在网页内截取的,所以不知道全路径是什么,那应该怎么办?

还有,我想问一下,为什么我直接用WPE直接发送包没有用呢?
发表于 2009-7-30 05:06:19 | 显示全部楼层
把你那个网页地址贴出来
应该是: 域名/api/gateway.php
发表于 2010-4-15 21:04:42 | 显示全部楼层
POST /api/gateway.php HTTP/1.1..
Accept: */*..Accept-Language: zh-CN..
Referer:  ... 0..x-flash-ve ...
foxdcj 发表于 2009-7-26 14:34



    false不要引号
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-22 09:38 , Processed in 0.074376 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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