找回密码
 加入
搜索
查看: 4394|回复: 6

[IE类操作] 【大家火速围观】POST PUBWIN2009后台为什么不行呢?

[复制链接]
发表于 2010-11-16 23:10:09 | 显示全部楼层 |阅读模式
本帖最后由 cutyourchicken 于 2010-11-17 03:09 编辑
POST /NetCafe/login.do HTTP/1.1
Accept: application/x-shockwave-flash, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Referer: https://192.168.1.150/NetCafe/login.jsp
Accept-Language: zh-cn
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; QQPinyinSetup 614)
Host: 192.168.1.150
Content-Length: 59
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=34FA902342616207DFB8162F669F9261

userName=admin&signature=&rand=&password=72041012&retrieve=
POST代码是这样的:
$xmlhttp=ObjCreate("Microsoft.XMLHTTP")
$poststr="userName=admin&signature=&rand=&password=72041012&retrieve="
$xmlhttp.open("post","https://192.168.1.150/NetCafe/login.do",false)
$xmlhttp.setRequestHeader("Cache-Control", "no-cache")
$xmlhttp.setRequestHeader("Connection", "Keep-Alive")
$xmlhttp.setRequestHeader("Content-Length", "59")
$xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$xmlhttp.setRequestHeader("Referer","https://192.168.1.150/NetCafe/login.jsp")
$xmlhttp.setRequestHeader("Cookie","JSESSIONID=34FA902342616207DFB8162F669F9261")
$xmlhttp.send($poststr)




联系QQ:282128645提供测试环境,大家多多帮忙哦
 楼主| 发表于 2010-11-16 23:15:54 | 显示全部楼层
自己顶起来。。。。。。第一次搞POST,一定要成功啊o(∩_∩)o
发表于 2010-11-17 02:28:25 | 显示全部楼层
帮顶!飘过!建议去掉“联系QQ:282128645提供测试环境”!呵呵
 楼主| 发表于 2010-11-17 03:08:37 | 显示全部楼层
回复 3# 依旧漂泊


没事,大家不都是在发现问题解决问题中慢慢成长的吗?o(∩_∩)o 希望大家可以围观下,更希望论坛的元老可以帮帮忙
发表于 2010-11-17 07:37:57 | 显示全部楼层
你是什么问题呢?
注意"Content-Length"要是真实的提交长度。
Cookie也不是乱指定的,使用服务器的返回值是最好的。
 楼主| 发表于 2010-11-17 15:37:20 | 显示全部楼层
本帖最后由 cutyourchicken 于 2010-11-17 15:43 编辑

回复 5# republican


    你看看上面给出的抓包,我的确是按照抓到的包数据填写的了,运行脚本提示:错误的请求

COOKIES我也试过手动提取一个未登陆的会话ID了,不过还是提示同样错误,汗!不知道是不是会话丢失了呢?

各位有经验的朋友帮帮忙,提供相关思路和函数
 楼主| 发表于 2010-11-17 17:43:34 | 显示全部楼层
找资料中。。。。。。等待中。。。。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-19 22:04 , Processed in 0.084045 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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