Postman : where cookies are saved?

Viewed 261

I have 2 opened tab in Postman. One tab calls login API, second calls protected page. If I call the second tab without calling the first I get "Bad request":

enter image description here

but I call the first before with valid credentials:

enter image description here

and the call the second again, then I get protected page:

enter image description here

Where is it and how to get it to set inside my application?

2 Answers

Postman uses a javascript engine based on node js, so cookies are saved in the regular way nodejs does.

About how to use the cookies inside postman, you can use them like this:

console.log(postman.getResponseCookie('cookie name').value);

Here you can find an example of how to manipulate cookies using postman.

If you only want to inspect the cookies you can use the cookie manager.

Cookies saved by postman can be viewed by clicking cookies button under Send button.

Refer this

Related