Testing website responses using Postman

Return on Development

Postman is a great tool for sending HTTP GET/POST/etc. requests to servers and reviewing responses.

One issue is that if you are using a website that has a cookie (i.e. authentication for sign in), it can be a challenge to copy that setup from your browser environment to Postman for testing.

A nice trick to do that is to use Google’s Dev Tools to “Copy as cURL (bash)” on the network request (POST, etc):

Copy the output into the URL field in Postman:

Cookies and all other elements of the request get carried over. Neat.

© 2024 Return on Development, Seth Hayward