I need to get the url of the response (after any redirects) from a request made in the Pre-request Script. Is this possible in postman?
The postman response object doesn't seem to include the url https://learning.postman.com/docs/writing-scripts/script-references/postman-sandbox-api-reference/#scripting-with-response-data
This doesn't work, but I was hoping to do something like:
pm.sendRequest("https://foobar.com", function (err, response) {
console.log(response.url);
});