Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Postman : where cookies are saved?

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?

like image 737
Oleg Sh Avatar asked Jan 09 '19 17:01

Oleg Sh


2 Answers

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

Refer this

like image 157
Manu Bhardwaj Avatar answered Nov 14 '22 16:11

Manu Bhardwaj


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.

like image 39
Óscar Andreu Avatar answered Nov 14 '22 18:11

Óscar Andreu