How can I retrieve the full URL from shortened url from

I am parsing some RSS feeds on my website and need to find the original url from urls. How can I find that?

for example the url is like this, .. i need this url expanded this,
LVL 36
Loganathan NatarajanLAMP DeveloperAsked:
Who is Participating?
You can use API
bitly API Documentation
You can use an http connection to get the redirect address for the short address. get the redirect address for the status 301 !
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

if you dont have any username/ref key?

<textarea id="abc" style="width:300;height:100"></textarea>
      var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      //var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");"POST","", true);
      xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
            if(xmlhttp.readyState==4 && xmlhttp.status==200)
                  document.getElementById("abc").innerText = xmlhttp.responseText;

Ray PaseurCommented:
The example is a 404 page.  If you can give us a REAL, WORKING bitly URL, we might be able to give you back the PHP code that extracts the original URL.
Loganathan NatarajanLAMP DeveloperAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.