|
我是新手,测试代码如下:
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]
请问这是怎么回事? |
|