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;
    }
    

      

     

  • 相关阅读:
    HttpServletResponse对锂
    搭建java Web项目开发环境(一)
    React Native动画-Animated
    React-Navigation redux集成
    react-navigation 使用详解
    echart
    io-输出流
    react-native-lesson
    集合类-HashSet去重
    kafka不同主题使用同一个group.id的坑
  • 原文地址:https://www.cnblogs.com/jack123pep/p/12915430.html
Copyright © 2011-2022 走看看