How can I retrieve the full URL from shortened url from

Posted on 2011-04-26
Last Modified: 2012-05-11
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,
Question by:Loganathan Natarajan
    LVL 3

    Expert Comment

    You can use API
    bitly API Documentation
    LVL 2

    Accepted Solution

    LVL 2

    Expert Comment

    You can use an http connection to get the redirect address for the short address. get the redirect address for the status 301 !
    LVL 2

    Expert Comment

    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;

    LVL 107

    Expert Comment

    by:Ray Paseur
    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.
    LVL 36

    Author Closing Comment

    by:Loganathan Natarajan

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to count occurrences of each item in an array.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now