Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get last redirect URL #42

Open
MaestroJurko opened this issue Mar 24, 2016 · 1 comment
Open

Get last redirect URL #42

MaestroJurko opened this issue Mar 24, 2016 · 1 comment

Comments

@MaestroJurko
Copy link

How would someone get the last redirect URL?

@chriso
Copy link
Contributor

chriso commented Mar 24, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants