Я пытаюсь пройти через URL-адрес, который перенаправляет меня на другую страницу, используя модуль request_s .
С помощью docs я не смог найти ничего, что позволило бы мне получить URL-адрес после перенаправления.
Мой код выглядит следующим образом:
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 );
});