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