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
Post a Comment