zoukankan      html  css  js  c++  java
  • LR函数之web_get_int_property()

    web_get_int_property()

    函数用途:

    记录http响应的信息

    函数属性:

    HTTP_INFO_RETURN_CODE:                返回http代码

    HTTP_INFO_DOWNLOAD_SIZE:          返回页面字节数

    HTTP_INFO_DOWNLOAD_TIME:        返回页面下载时间

    例子:

    Action()
    {
    	//设置自定义变量
    	int HttpRetCode;
    	int HttpRetSize;
    	int HttpRetTime;
    	
    	//打开页面
    	web_url("绿色资源网",
    		"URL=http://www.downcc.com",
    		"TargetFrame=",
    		"Resource=0",
    		"Referer=",
    		LAST);
    	
    	//获取HTTP响应信息
    	HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE);
    	HttpRetSize = web_get_int_property(HTTP_INFO_DOWNLOAD_SIZE);
    	HttpRetTime = web_get_int_property(HTTP_INFO_DOWNLOAD_TIME);
    	
    	//设置检查点
        if (HttpRetCode==200) {
    		lr_log_message("绿色资源网返回成功!!");
            lr_log_message("downcc返回HTTP_INFO_RETURN_CODE:%d", HttpRetCode);
            lr_log_message("downcc返回HTTP_INFO_DOWNLOAD_SIZE:%d", HttpRetSize);
            lr_log_message("downcc返回HTTP_INFO_DOWNLOAD_TIME:%d", HttpRetTime);
        } else {
            lr_log_message("downcc返回失败:%d", HttpRetCode);
        }
    
    	return 0;
    }
    

      

     

  • 相关阅读:
    正则工具
    反射工具类
    FastJson前置属性过滤器
    随机数工具类
    对图片进行压缩,水印,伸缩变换,透明处理,格式转换操作
    ChineseNumber 转换
    auth src
    tex src
    freeradius防止用户异常断开无法重新链接上
    gnu
  • 原文地址:https://www.cnblogs.com/jack123pep/p/12915430.html
Copyright © 2011-2022 走看看