Hi,
I have header response as
Set-Cookie: APT_SESSIONID=ZhROCfuCLPecWZHfZXG5GzjDu27CQ0rz_EncOcqJ.app_axa; path=/
I need to extract the value “ZhROCfuCLPecWZHfZXG5GzjDu27CQ0rz_EncOcqJ.app_axa”.
I tried to use headerRegex as mentioned below. But it is not working for me. Please help.
headerRegex("Set-Cookie",""""APT_SESSIONID=(.*?); path=/""").ofType[(String, String)].saveAs("capt_sessionid")
headerRegex("Set-Cookie","""APT_SESSIONID=(.*); path=/""").ofType[(String)].saveAs("capt_sessionid"))
headerRegex("Set-Cookie","capt_sessionid=${APT_SESSIONID}.*"))
Thanks,
Sasmita