|
8#
楼主 |
发表于 2010-8-3 10:32:26
|
只看该作者
我将web_reg_save_param函数放到了
web_custom_request("login.cgi",
"URL=http://192.168.8.223/login.cgi?useajax=true",
"Method=POST",
"Resource=1",
"Referer=http://192.168.8.223/",
"EncType=",
LAST);
之前,但是还是找不到这个数据,我的所有的脚本如下:
Action()
{
web_set_user("root",
lr_decrypt("4c523082364870665d0e2264"),
"192.168.8.223:80");
web_url("192.168.8.223",
"URL=http://192.168.8.223/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(7);
web_set_max_html_param_len("1516");
web_reg_save_param ("authStr",
"NOTFOUND=ERROR",
"LB=result=ok,",
"RB=Str=" ,
"ORD=1", LAST );
web_custom_request("login.cgi",
"URL=http://192.168.8.223/login.cgi?useajax=true",
"Method=POST",
"Resource=1",
"Referer=http://192.168.8.223/",
"EncType=",
LAST);
web_url("index.htm",
"URL=http://192.168.8.223/index.htm?authStr=7q2UqdhlbyeH9Ky4xxQX0CW9iplLPxJEG5C9DDIgSQuctgW1UoCuDWqUC1zF7W7",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_url("top.htm",
"URL=http://192.168.8.223/top.htm?authStr=7q2UqdhlbyeH9Ky4xxQX0CW9iplLPxJEG5C9DDIgSQuctgW1UoCuDWqUC1zF7W7",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.8.223/index.htm?authStr=7q2UqdhlbyeH9Ky4xxQX0CW9iplLPxJEG5C9DDIgSQuctgW1UoCuDWqUC1zF7W7",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
我的本意是想将黑体部分的字符关联,然后我试着将web_reg_save_param函数放在每个脚本函数之前,但是每次都提示:
Action.c(33): 警告 -26567: 未检测到任何 HTTP 状态行。以上的未定数据和目前接收的其他数据将作为“http://192.168.8.223/login.cgi?useajax=true”的不带标头的正文进行处理 [MsgId: MWAR-26567]
Action.c(33): 错误 -26377: 找不到请求的参数“authStr”的匹配项。检查请求的边界是否存在于响应数据中。此外,如果要保存的数据超过 1516 个字节,请使用 web_set_max_html_param_len 增加参数大小 [MsgId: MERR-26377]
唉,问题还是没有解决,不过多谢各位了,我会继续努力学习的 |
|