找回密码
 加入
搜索
查看: 3265|回复: 5

请教POST网页错误

  [复制链接]
发表于 2010-1-13 02:47:50 | 显示全部楼层 |阅读模式
拦截信息
POST http://sl109.qq.com/s/delete_army.alc HTTP/1.1..
Referer: http://sl109.qq.com/s/view_updat ... ildingNo=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 完成:[CODE]:1
+>02:31:44 ACNWrapper 完成!
>退出代码: 1    时间: 4.058
发表于 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

试试
发表于 2010-1-13 11:00:12 | 显示全部楼层
post 建议使用 winhttp
发表于 2010-1-13 16:14:16 | 显示全部楼层
帮顶哈··呵呵
 楼主| 发表于 2010-1-13 20:37:20 | 显示全部楼层
回复 2# guland
2楼的代码  还是一样的错误
发表于 2010-1-14 20:19:19 | 显示全部楼层
这是什么网站啊,你要用POST做什么
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-29 00:52 , Processed in 0.075633 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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