|
Action()
{
web_reg_save_param("just1", "LB=Name=userSession Value= ", "RB= checked >", LAST );
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(6);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={just1}", ENDITEM, "Name=username", "Value=jian", ENDITEM,
"Name=password", "Value=jian+jing", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=67", ENDITEM,
"Name=login.y", "Value=13", ENDITEM,
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t3.inf",
LAST);
return 0;
}
运行后报错:
Action.c(9): Error -26377: No match found for the requested parameter "just1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(9): web_url("WebTours") highest severity level was "ERROR", 6877 body bytes, 1808 header bytes [MsgId: MMSG-26388]
还有就是不大懂Web_reg_save_param函数中的RB怎么写;求帮助……先谢谢啊 |
|