ttback / node-expand-url

HTTP-Pool-enhanced URL expander for node.js
8 stars 2 forks source link

Need a hack for few url expanders #2

Open rakeshtembhurne opened 8 years ago

rakeshtembhurne commented 8 years ago

Hello, for some urls the expander does not work. It returns the same url. However using it on browser, redirects to the new url.

var urlExpander=require('expand-url');

var url = 'http://cdn.newsapi.com.au/link/375e7272fdc87a7db2d21e25ab9c8320';
urlExpander.expand(url, function(err, longUrl){
    console.log(longUrl);
});
ttback commented 8 years ago

@rakeshtembhurne I ran your above code and output is http://www.dailytelegraph.com.au/remote/check_cookie.html?url=http%3a%2f%2fwww.dailytelegraph.com.au%2fnews%2fnsw%2fmother-reveals-chilling-final-phonecall-moments-before-daughter-was-murdered%2fnews-story%2f375e7272fdc87a7db2d21e25ab9c8320