Skip to Content

Reading Response Header Groovy Script

Jan 15 at 03:35 PM


avatar image

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.



10 |10000 characters needed characters left characters exceeded

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.


Praveen T

* Please Login or Register to Answer, Follow or Comment.

1 Answer

Maximiliano Colman Jan 16 at 07:52 PM
10 |10000 characters needed characters left characters exceeded