LoadRunner打印重定向状态码

Action()
{
	int HttpRetCode;
    web_set_option("MaxRedirectionDepth", "0", LAST );	//将允许的最大重定向次数设为0,即关闭重定向
	web_url("baidu", 
		"URL=http://www.baidu.com/s?ie=utf-8&mod=2&cqid=c921e20b001d1515&pstg=3&istc=718&ver=RdBxHNYFOrXajezvoq4Vy39X202rWCuUCYO&chk=538e7c85&isid=393752D7BC443460&wd=javascript&rsv_bp=0&tn=baidu&rsv_spt=3&ie=utf-8&rsv_sug3=5&rsv_sug4=483&rsv_sug1=5&oq=javas&rsv_sug2=0&f=3&rsp=0&inputT=2137", 
		"Resource=0", 
		"RecContentType=text/html", 
		"Referer=http://www.baidu.com/#wd=javascript&rsv_bp=0&tn=baidu&rsv_spt=3&ie=utf-8&rsv_sug3=5&rsv_sug4=483&rsv_sug1=5&oq=javas&rsv_sug2=0&f=3&rsp=0&inputT=2137", 
		"Snapshot=t9.inf", 
		"Mode=HTML", 
		LAST);
	HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE);	//获取Http状态码
	lr_log_message("***HttpRetCode: %d", HttpRetCode);	//打印Http状态码

	return 0;
}


*** walker ***


你可能感兴趣的:(302,loadrunner)