Skip to Content

Reading Response Header Groovy Script

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.



Add comment
10|10000 characters needed 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

  • Get RSS Feed

1 Answer

  • Jan 16, 2018 at 07:52 PM
    Add comment
    10|10000 characters needed characters exceeded