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

来源:互联网 发布:喵咪看片软件最新版 编辑:程序博客网 时间:2024/06/06 04:45

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;

}

0 0