Click here to Skip to main content
15,881,862 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

We are using a Mock server built on Postman in order to simulate the way our application works with an external API. In one of the calls, we need to receive, as a part of its response, a cookie sent by the mock server...
How could I do that?
Thank you!
Regards

What I have tried:

Modify the reponse contents (headers, etc.) seems not to be possible from my understanding... As far as I know, only the JSON document for the response can be defined
Posted
Updated 13-May-19 2:05am

1 solution

Cookies are included in the headers of the response, so read the appropriate header and parse it. Without knowing what technology you are using to process the response it is hard to give specific advice, but most libraries that are used to make http requests have built-in abilities for reading any cookies that were sent.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900