Postman - can I save some of the cookie information returned in a variable? -


my first step same - log in. when log in need 4 pieces of information headers. need use 4 cookies/values/whatever subsequent actions (post, put, get, etc...)

is there way save 4 pieces of information headers variables can use them in next query? since session seems time out after 3 minutes copy , pasting driving me mad.

i found response body:

var jsondata = json.parse(responsebody); postman.setenvironmentvariable("token", jsondata.token); 

how can information returned in header?

if still issue you, may have @ this: https://www.getpostman.com/docs/postman/scripts/postman_sandbox in paragraph "request/response related properties" have information on how extract data headers (request or response) , in paragraph above, how data cookies ...

hope helps

alexandre


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -