Get last redirect URL
MaestroJurko opened this issue · 1 comments
MaestroJurko commented
How would someone get the last redirect URL?
chriso commented
No clue. This library is a wrapper for the command line curl
tool, so have a look at man 1 curl
.
If you need help working out what curl
command the library is running, use the pretend
option:
curl.request({url: 'http://google.com', pretend: true}, function (err, stdout, meta) {
console.log('%s %s', meta.cmd, meta.args.join(' '));
});