找回密码
 加入
搜索
查看: 1791|回复: 3

post问题

[复制链接]
发表于 2009-5-22 16:42:28 | 显示全部楼层 |阅读模式
本帖最后由 jhkdqaa 于 2009-5-22 17:10 编辑

当前网址:http://www.ec21.com/global/login/Login.jsp
html语句
<input class="form" type="text" onkeydown="EnterCheck(event)" maxlength="20" name="user_id"/>
<input class="form" type="password" onkeydown="EnterCheck(event)" maxlength="12" name="user_pw"/>
截取的包
sPOST /global/login/LoginSubmit.jsp HTTP/1.1
Host: www.ec21.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1b5pre) Gecko/20090426 Shiretoko/3.5b4pre (ayakawa PGU)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: gb2312,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.ec21.com/global/login/Login.jsp
Cookie: JSESSIONID=1834310114CC0EF58B2536F554D35643;
ec21_user=某某某
Content-Type: application/x-www-form-urlencoded
Content-Length: 73

nextUrl=%2F&inq_gubun=&user_id=某某某&user_pw=某的密码&forever=on
请问怎么写POST自动登录?或是指点下post语句的说明在哪里,实在是找不到
 楼主| 发表于 2009-5-22 16:56:39 | 显示全部楼层
$oHTTP = ObjCreate("microsoft.xmlhttp")
        $oHTTP.Open("post", "http://www.ec21.com/global/login/LoginSubmit.jsp", false, $rs.Fields(1), $rs.Fields(2))
这样对没?问题是cookies和seasons怎么办呢?
发表于 2009-6-26 21:09:16 | 显示全部楼层
$oHTTP.SetRequestHead
发表于 2009-6-27 09:04:38 | 显示全部楼层
真是复杂啊!!!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-23 01:18 , Processed in 0.073573 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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