I\'m using Postman to test and play with an API.
For the login url, the API requires sending a POST request with username and password as fiel
I tried using Ashutosh's answer but got an error. I'm guessing this is because Postman's scripting API changed?
At any rate, the following worked for me:
Tests tab of the request that will return cookies you want to save, writepm.globals.set('', pm.cookies.get(''));
cookie and corresponding value as ={{}}; .I found documentation for this at the Postman sandbox API reference.