Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

CAn I extract a token from a web_add_auto_header command

$
0
0

Hi,

I am writing a multi VUGen script of HTTP & Citrix, in Loadrunner 12.5.

I have hit an issue where the recording has generated the below:

    web_add_auto_header("Csrf-Token", 
        "8E3FABEB3F3C95F3D2FBE9B06E84291A");

The underlined text is a token that changes per session and is used further down the script to make the below call:

ctrx_nfuse_connect("https://{server}/Citrix/StoreWeb/Resources/LaunchIca/{token}.ica?CsrfToken=8E3FABEB3F3C95F3D2FBE9B06E84291A&IsUsingHttps=Yes&launchId={launchID}&displayNameDesktopTitle=Windows%207%20Desktop", CTRX_LAST);

Is there a way to make extract this token prior to the web_add_auto_header to parameterise it in the call further down.

I've had a look around but I can't find a great deal of information on the web_add_auto_header. But i haven't found anything that looks to do this.

If this is not possible, is there a workaround to get around this issue?

Thanks


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>