node-js-libs/curlrequest

Get last redirect URL

Opened this issue · 1 comments

How would someone get the last redirect URL?

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(' '));
});