用XML做 POST的问题!
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
请高手帮忙一下,我这样操作有些什么问题,谢谢! 路径错误呢!
/api/gateway.php这个要全路径的! 我这个不是在网页内截取的,所以不知道全路径是什么,那应该怎么办?
还有,我想问一下,为什么我直接用WPE直接发送包没有用呢? 把你那个网页地址贴出来
应该是: 域名/api/gateway.php POST /api/gateway.php HTTP/1.1..
Accept: */*..Accept-Language: zh-CN..
Referer:... 0..x-flash-ve ...
foxdcj 发表于 2009-7-26 14:34 http://www.autoitx.com/images/common/back.gif
false不要引号
页:
[1]