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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -