cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Response Header Groovy Script

itabhishek9
Participant
0 Kudos

Hi SDNites,

I wanted to read the response header values (Obtained via Request Reply step - Get Method) using Groovy script which I need to pass further to the POST method. I have tried to follow the blog "Handling CSRF tokens", and in that cookies are being read but in my case I am getting cookies as blank. Can you please advise if this is the correct approach to maintain the same session between Get and POST methods or do we need to read the token and then pass it on to POST method. If yes, how do I read the token from response header.

Regards,

Abhi

0 Kudos

Hi Abhishek,

A suggestion you could write the cookie value in the property and use the same for further calls. the cookie value doesn't change during the chain of calls.

If you are facing any specific issue do let us know.

Hope this helps.

regards,

Praveen T

Accepted Solutions (0)

Answers (1)

Answers (1)

maxi1555
Contributor
0 Kudos