Convert Short Urls to Long Urls
How to get a long/actual url from a short url?
Sometimes when we try to fetch short urls, using curl, we get a blank page as reply or a 301 ERROR. The reason being that there is no html file stored at that location,only a header with details ,on where the person who has opened the url would be redirected to.
So to get the actual url or long url from the short url, we just have to read the location stored in the html header.