How do I get the redirected url from the nodejs request module?
There are two very easy ways to get hold of the last url in a chain of redirects. var r = request(url, function (e, response) { r.uri response.request.uri }) The uri is a object. uri.href contains the url, with query parameters, as a string. The code comes from a comment on a github issue by … Read more