TA的每日心情 | 怒 2015-12-2 14:25 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
1、本人录制的脚本如下:
vuser_init()
{
web_set_user("admin",
lr_decrypt("56ab3a7e6b75323af5"),
"190.168.7.20:80");
web_url("190.168.7.20",
"URL=http://190.168.7.20/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t14.inf",
"Mode=HTML",
LAST);
lr_think_time(9);
web_url("ini.htm",
"URL=http://190.168.7.20/ini.htm?0.3916476243899736",
"Resource=0",
"RecContentType=text/html",
"Referer=http://190.168.7.20/",
"Snapshot=t15.inf",
"Mode=HTML",
LAST);
web_url("kez_preview.htm",
"URL=http://190.168.7.20/pages/kez_preview.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://190.168.7.20/pages/kez_login.htm",
"Snapshot=t16.inf",
"Mode=HTML",
EXTRARES,
"Url=../images/bg.jpg", "Referer=http://190.168.7.20/pages/kez_login.htm", ENDITEM,
"Url=../images/logo_bg.jpg", ENDITEM,
"Url=../images/logo.jpg", ENDITEM,
LAST);
return 0;
}
2、该脚本是录制的,执行脚本时出现日志如下:
vuser_init.c(29): Error -26630: HTTP Status-Code=401 (Unauthorized) for "http://190.168.7.20/ini.htm?0.3916476243899736" [MsgId: MERR-26630]
vuser_init.c(29): web_url("ini.htm") highest severity level was "ERROR", 346 body bytes, 378 header bytes [MsgId: MMSG-26388]
请问我的登陆函数 web_set_user 有什么不对吗 ? 多谢了
|
|