|
对登录中,Session做关联,试过很多网上的情况,为什么还是提示下面信息:
vuser_init.c(57): Error -26377: No match found for the requested parameter "login". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 9999 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
vuser_init.c(57): web_submit_data("login.pl_2") highest severity level was "ERROR", 748 body bytes, 225 header bytes [MsgId: MMSG-26388]
附录代码如下,麻烦大家帮我看看:
vuser_init()
{
web_url("mercuryWebTours",
"URL=http://127.0.0.1:1080/mercuryWebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("mercuryWebTours_2",
"URL=http://127.0.0.1:1080/mercuryWebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
lr_think_time(4);
web_submit_form("login.pl",
"Snapshot=t3.inf",
ITEMDATA,
"Name=username", "Value=tsj", ENDITEM,
"Name=password", "Value=tsj", ENDITEM,
"Name=login.x", "Value=0", ENDITEM,
"Name=login.y", "Value=0", ENDITEM,
LAST);
//读取登录用户相关信息,和后面的订票确认相关联
//此过程通过切换树形目录下,读取server response获得
web_set_max_html_param_len("9999");
web_reg_save_param("login",
"LB/IC=userSession=",
"RB/IC=&username=",
"Ord=All",
"NotFound=ERROR",
"RelFrameId=1",
LAST);
web_submit_data("login.pl_2",
"Action=http://127.0.0.1:1080/mercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?in=home",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={login}", ENDITEM,
"Name=username", "Value=tsj", ENDITEM,
"Name=password", "Value=tsj", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=0", ENDITEM,
"Name=login.y", "Value=0", ENDITEM,
LAST);
return 0;
} |
|