No match found for the requested parameter "formhash
我用LR录了一个BBS的注册和登录,关联完成之后提示这个错误:Action.c(182): Error -26377: No match found for the requested parameter "formhash". 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代码如下:求各位大神指点小的一下
Action()
{
web_url("forum.php",
"URL=http://211.149.218.16/bbs/forum.php",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
lr_start_transaction("sign");
web_url("style_1_common.css",
"URL=http://211.149.218.16/bbs/data/cache/style_1_common.css?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("style_1_forum_index.css",
"URL=http://211.149.218.16/bbs/data/cache/style_1_forum_index.css?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("common.js",
"URL=http://211.149.218.16/bbs/static/js/common.js?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("style_1_widthauto.css",
"URL=http://211.149.218.16/bbs/data/cache/style_1_widthauto.css?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("forum.js",
"URL=http://211.149.218.16/bbs/static/js/forum.js?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("logging.js",
"URL=http://211.149.218.16/bbs/static/js/logging.js?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("home.php",
"URL=http://211.149.218.16/bbs/home.php?mod=misc&ac=sendmail&rand=1462838281",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_concurrent_end(NULL);
lr_think_time(8);
web_url("立即注册",
"URL=http://211.149.218.16/bbs/member.php?mod=register",
"Resource=0",
"RecContentType=text/html",
"Referer=http://211.149.218.16/bbs/forum.php",
"Snapshot=t2.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("style_1_common.css_2",
"URL=http://211.149.218.16/bbs/data/cache/style_1_common.css?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
LAST);
web_url("style_1_widthauto.css_2",
"URL=http://211.149.218.16/bbs/data/cache/style_1_widthauto.css?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
LAST);
web_url("logging.js_2",
"URL=http://211.149.218.16/bbs/static/js/logging.js?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
LAST);
web_url("register.js",
"URL=http://211.149.218.16/bbs/static/js/register.js?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
LAST);
web_url("common.js_2",
"URL=http://211.149.218.16/bbs/static/js/common.js?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
LAST);
web_concurrent_end(NULL);
lr_think_time(5);
web_url("forum.php_2",
"URL=http://211.149.218.16/bbs/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkusername&username=123456qwe",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
"Snapshot=t3.inf",
"Mode=HTTP",
LAST);
lr_think_time(10);
web_url("forum.php_3",
"URL=http://211.149.218.16/bbs/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkemail&email=123456qwe@qq.com",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
"Snapshot=t4.inf",
"Mode=HTTP",
LAST);
web_url("forum.php_4",
"URL=http://211.149.218.16/bbs/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkemail&email=123456qwe@qq.com",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
"Snapshot=t5.inf",
"Mode=HTTP",
LAST);
web_reg_save_param_ex(
"ParamName=formhash",
"LB=<input type=\"hidden\" name=\"formhash \" value=\"",
"RB=\" />",
SEARCH_FILTERS,
LAST);
web_url("ajax.js",
"URL=http://211.149.218.16/bbs/static/js/ajax.js?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
LAST);
web_submit_data("member.php",
"Action=http://211.149.218.16/bbs/member.php?mod=register&inajax=1",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/xml",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
"Snapshot=t6.inf",
"Mode=HTTP",
ITEMDATA,
"Name=regsubmit", "Value=yes", ENDITEM,
"Name=formhash", "Value={formhash}", ENDITEM,
"Name=referer", "Value=forum.php", ENDITEM,
"Name=activationauth", "Value=", ENDITEM,
"Name=username1", "Value={sign}", ENDITEM,
"Name=password1", "Value={password1}", ENDITEM,
"Name=password3", "Value={password2}", ENDITEM,
"Name=email1", "Value={email}", ENDITEM,
LAST);
web_url("forum.php_5",
"URL=http://211.149.218.16/bbs/forum.php",
"Resource=0",
"RecContentType=text/html",
"Referer=http://211.149.218.16/bbs/member.php?mod=register",
"Snapshot=t7.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("style_1_common.css_3",
"URL=http://211.149.218.16/bbs/data/cache/style_1_common.css?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("forum.js_2",
"URL=http://211.149.218.16/bbs/static/js/forum.js?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("style_1_forum_index.css_2",
"URL=http://211.149.218.16/bbs/data/cache/style_1_forum_index.css?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("common.js_3",
"URL=http://211.149.218.16/bbs/static/js/common.js?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("style_1_widthauto.css_3",
"URL=http://211.149.218.16/bbs/data/cache/style_1_widthauto.css?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
web_url("html5notification.js",
"URL=http://211.149.218.16/bbs/static/js/html5notification.js?j8N",
"Resource=1",
"Referer=http://211.149.218.16/bbs/forum.php",
LAST);
关联函数放的位置不对
关联函数要放在可以提取到数据的请求的前面,表示要到下一个请求中查找需要的数据,然后再进行使用
你目前是放在要使用的前面,当然查找不到咯
应该放在下面这段前面:
web_url("立即注册",
"URL=http://211.149.218.16/bbs/member.php?mod=register",
"Resource=0",
"RecContentType=text/html",
"Referer=http://211.149.218.16/bbs/forum.php",
"Snapshot=t2.inf",
"Mode=HTTP",
LAST);
页:
[1]