Thursday 31 December 2015

Best way to do this in Node?

Let's say I have a url in a string x. I know that if requested, that url will redirect to some other url. However, where it redirects is nondeterministic and I have to re-request it every time to get the next redirect url. How do I grab this redirect without downloading the actual web content that it links to? I simply want the url.Thanks!

Submitted December 31, 2015 at 08:15AM by CJ-Johnson

No comments:

Post a Comment