I am using regular expression extractor in JMeter to extract the response data which contains something like the following:
Set-Cookie: X-Tr-Auth=b1eada98-ffa1-45a3-522e-591a84dd48f2; Path=/msf; Expires=Fri, 05 Dec 2064 09:25:44 UTC; HttpOnly
The above data is sent from the server after user logs in, I need to use the above authcode to post a JSON body.
I have set the regular expression extractor to the following values:
Reference Name: authcode
Regular Expression: Set-Cookie: "(.+?)"
Template: $1$
Match No. : 1
Default Value: 0
I am getting 0 every time I run the test. I saw a similar question in Stack-overflow with no satisfactory answer. Need expert advise.