I'm trying to submit a form in Postman which then redirects to another url. The redirected url query string contains some information that I want to use in my next call. Is this even possible and if yes, how?
I haven't been able to find anything in Postman docs regarding this.
Yes, you can retrieve the redirected URL, extract interested information, and use it in the next request in Postman.
First, to retrieve the redirected URL, the "Automatically follow redirects" option in Postman should be turned off:
Then, you can intercept the redirect response, extract what is interested, and set it as global variable or environment variable:
Finally, this variable can be used in "next request", as query string in GET request, or as part of POST request's body:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With