|
6#
楼主 |
发表于 2004-11-10 10:53:06
|
只看该作者
这是我的登陆脚本:
#include "as_web.h"
Action()
{
web_url("index.htm",
"URL=http://192.168.102.252:7001/index.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/public/css/tabpane_left.css", ENDITEM,
"Url=/images/index2/tmp3_r1_c2.jpg", ENDITEM,
"Url=/images/index2/lg_r4_c3.png", ENDITEM,
LAST);
lr_think_time( 2 );
web_submit_data("check.jsp",
"Action=http://192.168.102.252:7001/check.jsp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.102.252:7001/index.htm",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userid", "Value=000", ENDITEM,
"Name=Submit", "Value=登 录", ENDITEM,
"Name=password", "Value=1234", ENDITEM,
"Name=screenWidth", "Value=800", ENDITEM,
"Name=screenHeight", "Value=600", ENDITEM,
EXTRARES,
"Url=/public/css/tabpane.css", ENDITEM,
LAST);
web_url("mainframe800.jsp",
"URL=http://192.168.102.252:7001/mainframe800.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=/public/css/tabpane_left.css", ENDITEM,
"Url=/images/bj_ban_800.gif", ENDITEM,
"Url=/images/linbj_2_2.gif", ENDITEM,
"Url=/images/newpen1_2.gif", ENDITEM,
"Url=/images/newpen2.gif", ENDITEM,
"Url=/public/js/tabpane/btab.active2.gif", ENDITEM,
"Url=/images/newpen3.gif", ENDITEM,
"Url=/images/shoubj.gif", ENDITEM,
"Url=/images/dog_index_1_r1_c2.gif", ENDITEM,
"Url=/images/newpen1_3.gif", ENDITEM,
"Url=/images/2dog_in_bj.gif", ENDITEM,
"Url=/public/js/tabpane/btab2.gif", ENDITEM,
"Url=/images/dog_r10_c9_r1_c1.gif", ENDITEM,
"Url=/public/css/tabpane.css", "Referer=http://192.168.102.252:7001/info/info_desktop.jsp", ENDITEM,
"Url=/images/xin/na_bj_c2.gif", "Referer=http://192.168.102.252:7001/info/info_menu.jsp", ENDITEM,
"Url=/images/xin/bj_r4_c2.gif", "Referer=http://192.168.102.252:7001/info/info_menu.jsp", ENDITEM,
"Url=/images/xin/na-2bj2.gif", "Referer=http://192.168.102.252:7001/info/info_menu.jsp", ENDITEM,
"Url=/images/xin/dog_lin3.gif", "Referer=http://192.168.102.252:7001/info/info_desktop.jsp", ENDITEM,
"Url=/images/xin/mina_tab_bj1.gif", "Referer=http://192.168.102.252:7001/info/info_desktop.jsp", ENDITEM,
"Url=/images/xin/main_tr_lin.gif", "Referer=http://192.168.102.252:7001/info/info_desktop.jsp", ENDITEM,
"Url=/images/xin/dog_lin4.gif", "Referer=http://192.168.102.252:7001/info/info_desktop.jsp", ENDITEM,
"Url=/images/xin/dog_lin2.gif", "Referer=http://192.168.102.252:7001/info/info_desktop.jsp", ENDITEM,
"Url=/images/xin/dog_lin1.gif", "Referer=http://192.168.102.252:7001/info/info_desktop.jsp", ENDITEM,
"Url=/images/xin/mina_tr_bj3.gif", "Referer=http://192.168.102.252:7001/info/info_desktop.jsp", ENDITEM,
"Url=/images/xin/mina_tab_bj2.gif", "Referer=http://192.168.102.252:7001/info/info_desktop.jsp", ENDITEM,
"Url=/public/js/icons/line.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/empty.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/page.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/joinbottom.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/folder.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/plusbottom.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/plus.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/folderopen.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/minus.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/join.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/minusbottom.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
"Url=/public/js/icons/base.gif", "Referer=http://192.168.102.252:7001/adm/left.jsp", ENDITEM,
LAST);
return 0;
出错信息是:
connect to server "192.168.102.252:7001": [10060] Connection timed out
大家帮忙看一下把,谢谢 |
|