Vugen/TruClient Header Information
Is it possible in the course of running a script in TruClient to get a specific header value? Specifically we are trying to get a token value that is being passed via header.
Re: Vugen/TruClient Header Information
you can catch a particular value from response's headers using web_reg_save_param() or web_reg_save_param_regexp(). The difference between two functions are about the capture method: the first one expects left and right boundaries and save into a parameter the test in the midst of them; the second function capture a string by means of the regular expression.
You can point that the string you want to capture stands on headers using "Scope" function's argument, for instance
web_reg_save_param_regexp( "ParamName=aaaa", "RegExp=xx(.*?)yy", SEARCH_FILTERS, "Scope=Headers", "IgnoreRedirections=No", "RequestUrl=regularExpr", LAST);