小三 发表于 2010-1-13 02:47:50

请教POST网页错误

拦截信息
POST http://sl109.qq.com/s/delete_army.alc HTTP/1.1..
Referer: http://sl109.qq.com/s/view_update_building.alc?cid=131771&bid=249&buildingNo=building15
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Host: sl109.qq.com
Content-Length: 56
Connection: Keep-Alive
Cache-Control: no-cache
cid=131771&armyIds=1%2C&armyNums=1%2C&0.8274277856982983

代码
$oHTTP = ObjCreate("Msxml2.xmlhttp")
$oHTTP.Open("Post","http://sl109.qq.com/s/delete_army.alc",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.setRequestHeader("Referer","http://sl109.qq.com/s/view_update_building.alc?cid=131771&bid=249&buildingNo=building15")
$oHTTP.Send('cid=131771&armyIds=1%2C&armyNums=1%2C&0.8274277856982983= ')
$Log = $oHTTP.Responsetext

错误
$oHTTP.Send('cid=131771&armyIds=1%2C&armyNums=1%2C&0.8274277856982983= ')
$oHTTP.Send('cid=131771&armyIds=1%2C&armyNums=1%2C&0.8274277856982983= ')^ ERROR
->02:31:43 AutoIT3.exe 完成::1
+>02:31:44 ACNWrapper 完成!
>退出代码: 1    时间: 4.058

guland 发表于 2010-1-13 08:20:03

$oHTTP = ObjCreate("Msxml2.xmlhttp")
$oHTTP.Open("Post","http://sl109.qq.com/s/delete_army.alc",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.setRequestHeader("Content-Length","56")
$oHTTP.setRequestHeader("Referer","http://sl109.qq.com/s/view_update_building.alc?cid=131771&bid=249&buildingNo=building15")
$oHTTP.Send('cid=131771&armyIds=1%2C&armyNums=1%2C&0.8274277856982983= ')
$Log = $oHTTP.Responsetext

试试

jhwl 发表于 2010-1-13 11:00:12

post 建议使用 winhttp

huangke 发表于 2010-1-13 16:14:16

帮顶哈··呵呵

小三 发表于 2010-1-13 20:37:20

回复 2# guland
2楼的代码还是一样的错误

guland 发表于 2010-1-14 20:19:19

这是什么网站啊,你要用POST做什么
页: [1]
查看完整版本: 请教POST网页错误