What i want to do is to take a cookie value I've received after a "GET" message , set it's value as a global variable, then set it as a session cookie for a specific host, and later on use it in other requests.
Currently i'm doing this manually via this menu:
Is that possible?
What you need to do is in the Test
on response store the value you want to use in a global variable postman.setGlobalVariable('key', value)
then in the request you want to use it as a cookie, pass along the value in the header as a cookie where:
Cookie
| cookieName={{key}}
Check out the MZN docs on Cookie to see how to send multiple cookies in one header.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With