|
Action()
{
int n = 0;
END_RET: n = web_custom_request("register.cgi",
"URL=http://10.10.7.241:8030/cgi-bin/register.cgi",
"Method=POST",
"Resource=0",
"RecContentType=text/plain",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
"Body=siteName=wym&groupName=&playerName=WANGYI&version=0003.0000.0000.0000&password=123456&hardwareId=002197313FE7&description=&edgeServer=false&publishServer=http:%2F%2F10.10.7.254%2Fpublish",
LAST);
if ( n == LR_FAIL ) {
lr_error_message ("Register failed");
sleep(10000);
goto END_RET;
}
return 0;
}
上面是我写的register一个脚本,当我做压力测试的时候,模拟100个clients,结果失败的时候,并不进if语言,这是问什么,请教各位大侠 |
|