javascript - Get destination from URL shortener via AJAX call -


$( document ).ready(function() {    $.ajax({        type: 'head',        url:'http://bit.ly/1vtp41q',        complete: function(request, textstatus){             alert(request.getresponseheader('location'));        }     }); }); 

i'm making ajax call header info bit.ly link. can see final destination under location header (checking via console in firebug on firefox 33), getresponseheader function returning null.

is possible url , possibly page's title tweaking code?


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -