|
目标想通过关联方法截取一部分服务器返回的值,但现在问题是截取不到。
脚本如下:
Action()
{
web_set_max_html_param_len("102400");
web_reg_find("Search=Body",
"SaveCount=time",
"Text=把百度设为主页",
LAST);
web_reg_save_param("neirong",
"LB=<title>",
"RB=</title",
"Search=Headers",
LAST);
lr_output_message("%s",lr_eval_string("{neirong}"));
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=/img/i2.png", ENDITEM,
"Url=/img/arr.gif", ENDITEM,
"Url=/js/bdsug.js?v=1.0.3.0", ENDITEM,
"Url=/favicon.ico", "Referer=", ENDITEM,
LAST);
return 0;
}
报错信息如下:
Starting iteration 1.
Starting action Action.
Action.c(3): web_set_max_html_param_len was successful [MsgId: MMSG-26392]
Action.c(5): Registering web_reg_find was successful [MsgId: MMSG-26390]
Action.c(10): Registering web_reg_save_param was successful [MsgId: MMSG-26390]
Action.c(16): {neirong}
Action.c(18): Found resource "http://www.baidu.com/img/baidu_sylogo1.gif" in HTML "http://www.baidu.com/" [MsgId: MMSG-26659]
Action.c(18): Downloading resource "http://www.baidu.com/img/i2.png" (specified by argument number 9) [MsgId: MMSG-26577]
Action.c(18): Downloading resource "http://www.baidu.com/img/arr.gif" (specified by argument number 11) [MsgId: MMSG-26577]
Action.c(18): Downloading resource "http://www.baidu.com/js/bdsug.js?v=1.0.3.0" (specified by argument number 13) [MsgId: MMSG-26577]
Action.c(18): Downloading resource "http://www.baidu.com/favicon.ico" (specified by argument number 15) [MsgId: MMSG-26577]
Action.c(18): Found resource "http://gimg.baidu.com/img/gs.gif" in HTML "http://www.baidu.com/" [MsgId: MMSG-26659]
Action.c(18): Registered web_reg_find successful for "Text=把百度设为主页" (count=1) [MsgId: MMSG-26364]
Action.c(18): Error -26377: No match found for the requested parameter "neirong". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 102400 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(18): web_url("www.baidu.com") highest severity level was "ERROR", 9439 body bytes, 2232 header bytes [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 1. |
|