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

lr函数--web_get_int_property(记录HTTP响应信息)

2015-07-26 10:51 555 查看

lr函数--web_get_int_property

一、函数用途

记录http响应的信息(web_url、web_custom_request等)

二、函数属性

1.http_info_return_code: 返回http代码(全是大写)

2.http_info_download_size:返回页面字节数(全是大写)

3.http_info_download_time:返回页面下载时间(全是大写)

三、例子

Action()

{

int HttpRetCode;

web_url("www.hao123.com",

"URL=http://www.hao123.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;

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