51Testing软件测试论坛
标题:
为什么代码执行到一半的时候出现26377错误
[打印本页]
作者:
peng5047
时间:
2011-6-17 08:34
标题:
为什么代码执行到一半的时候出现26377错误
我是新手,测试代码如下:
Action()
{
char leon[10];
int leon1;
int m,n;
leon1=(int)fopen("D:\\Min\\length.txt","at+");
for(m=0;m<143;m++){
lr_save_string(lr_eval_string( "{zhan1}"),"tmp1");
for(n=0;n<144;n++)
{
lr_save_string(lr_eval_string( "{zhan2}"),"tmp2");
web_reg_save_param("leon","LB=距离为","RB=公里",LAST);
web_set_max_html_param_len("1000000");
lr_message("value:%s",lr_eval_string("{leon}"));
web_submit_data("zfbz.asp",
"Action=http://www.fjgshl.com/zfbz.asp?zf=submit",
"Method=POST",
"RecContentType=text/html",
"Referer=http://www.fjgshl.com/zfbz.asp",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=names1", "Value={tmp1}", ENDITEM,
"Name=names2", "Value={tmp2}", ENDITEM,
"Name=B1", "Value=查询", ENDITEM,
LAST);
if(n>m)
fprintf(leon1, "%s %s %s\n",lr_eval_string("{tmp1}"),lr_eval_string("{tmp2}"),lr_eval_string("{leon}"));
}
}
fclose(leon1);
return 0;
}
就是想从网站上刷数据,代码可以执行,当执行一会后就会报错:
Action.c(18): Error -26609: HTTP Status-Code=503 (Service Unavailable) for "http://www.fjgshl.com/zfbz.asp?zf=submit" [MsgId: MERR-26609]
Action.c(18): Error -26377: No match found for the requested parameter "leon". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1000000 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(18): web_submit_data("zfbz.asp") highest severity level was "ERROR", 326 body bytes, 187 header bytes [MsgId: MMSG-26388]
请问这是怎么回事?
作者:
peng5047
时间:
2011-6-17 08:40
不知道是哪里出了问题,刷出几十个数据后就出错了
作者:
msnshow
时间:
2011-6-17 13:55
服务器压死了
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2