您的位置:首页 > 理论基础 > 计算机网络

LR函数判断HTTP返回状态

2012-05-29 13:58 190 查看
web_get_int_property()的应用

Action()

{

int HttpRetCode;

web_url("www.baidu.com",

"URL=http://www.baidu.com/",

"Resource=0",

"RecContentType=text/html",

"Referer=",

"Snapshot=t1.inf",

"Mode=HTML",

LAST);

HttpRetCode
=web_get_int_property(HTTP_INFO_RETURN_CODE);

if (HttpRetCode == 200)

lr_log_message("请求成功!");

else

lr_log_message("请求失败!
");

return
0;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: