I'm trying to follow through on a url that redirects me to another page using the nodejs request module.
Combing through the docs I could not find anything that allows me to retrieve the url after the redirect.
My code is as follows:
var request = require("request"),
options = {
uri: 'http://www.someredirect.com/somepage.asp',
timeout: 2000,
followAllRedirects: true
};
request( options, function(error, response, body) {
console.log( response );
});