jhkdqaa 发表于 2009-5-22 16:42:28

post问题

本帖最后由 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语句的说明在哪里,实在是找不到:face (30):

jhkdqaa 发表于 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怎么办呢?

passkalilo 发表于 2009-6-26 21:09:16

$oHTTP.SetRequestHead

skycn540 发表于 2009-6-27 09:04:38

真是复杂啊!!!
页: [1]
查看完整版本: post问题