I have to call an API which redirects to a new URL with response in URL parameters. I want to capture these response URL and its parameters in postman.
Say I call https://endpoint.com/xyz it redirects to https://endpoint.com/redirect?flag=true I want to capture flag value.
Can it be done in postman script? How can I do it in Postman Script?