Is there a way to retrieve the redirected url from a Postman response?

前端 未结 1 805
深忆病人
深忆病人 2020-12-18 11:58

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

相关标签:
1条回答
  • 2020-12-18 12:06

    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:

    0 讨论(0)
提交回复
热议问题