脚本回放报错,在线等待解决!谢谢
Action.c(42): Error -26377: No match found for the requested parameter "sid". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 99999 bytes, use web_set_max_html_param_len to increase the parameter sizeAction.c(42): web_submit_data("login.php_2") highest severity level was "ERROR", 6746 body bytes, 1074 header bytes
脚本已经做了关联,用户帐号和密码已做了参数化,回放叠加5次。没有问题。查看数据库用户和流量都正常。当是叠加10次就随机挂掉个。报错见上面的日志。
脚本:
Action()
{
web_set_max_html_param_len("99999");
web_add_cookie("reachstone_uid=0; DOMAIN=192.168.1.66");
web_url("login.php",
"URL=https://192.168.1.66/WebPages/login.php",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t11.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("login.js",
"URL=https://192.168.1.66/WebPages/login.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=https://192.168.1.66/WebPages/login.php",
"Snapshot=t12.inf",
LAST);
web_url("bg.jpg",
"URL=https://192.168.1.66/WebPages/image/bg.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=https://192.168.1.66/WebPages/login.php",
"Snapshot=t13.inf",
LAST);
web_concurrent_end(NULL);
web_reg_save_param("sid",
"LB=key=",
"RB=$/",
"Ord=1",
LAST);
web_submit_data("login.php_2",
"Action=https://192.168.1.66/WebPages/login.php",
"Method=POST",
"RecContentType=text/html",
"Referer=https://192.168.1.66/WebPages/login.php",
"Snapshot=t14.inf",
"Mode=HTTP",
ITEMDATA,
"Name=auth_username", "Value={username}", ENDITEM,
"Name=auth_passwd", "Value={password}", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("log.jpg",
"URL=https://192.168.1.66/WebPages/image/log.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=https://192.168.1.66/WebPages/menu.php",
"Snapshot=t15.inf",
LAST);
web_url("editpass.jpg",
"URL=https://192.168.1.66/WebPages/image/editpass.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=https://192.168.1.66/WebPages/menu.php",
"Snapshot=t16.inf",
LAST);
web_url("icon2.jpg",
"URL=https://192.168.1.66/WebPages/image/icon2.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=https://192.168.1.66/WebPages/menu.php",
"Snapshot=t17.inf",
LAST);
web_url("bg1.jpg",
"URL=https://192.168.1.66/WebPages/image/bg1.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=https://192.168.1.66/WebPages/menu.php",
"Snapshot=t18.inf",
LAST);
web_url("logout.jpg",
"URL=https://192.168.1.66/WebPages/image/logout.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=https://192.168.1.66/WebPages/menu.php",
"Snapshot=t19.inf",
LAST);
web_concurrent_end(NULL);
web_url("jingtai.html",
"URL=https://192.168.1.66/$domain=192.168.1.70$key={sid}$/jingtai.html",
"Resource=0",
"RecContentType=text/html",
"Referer=https://192.168.1.66/WebPages/menu.php",
"Snapshot=t20.inf",
"Mode=HTTP",
LAST);
return 0;
}
[ 本帖最后由 bjsbd 于 2009-7-20 10:38 编辑 ]
回复 1# 的帖子
你不是不报错了嘛? 关联出错了 高手,请告诉我,怎么修改?
页:
[1]