Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

LoadRunner prints the redirection status code

Shulou Source: shulou.com Published: 2022-06-03 06:28:58 11月23日 Update

Action () {int HttpRetCode; web_set_option ("MaxRedirectionDepth", "0", LAST) / / set the maximum number of redirects allowed to 0 That is, turn off the redirect 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); / / get Http status code lr_log_message ("* HttpRetCode:% d", HttpRetCode); / / print Http status code return 0;}

* walker's current account *

Tags: Status maximum number of times flow current account Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Xiaomi OPPO Reno Microsoft Redmi