News for hackers. Stuff that matters.
Re:Ask HN: Review a simple URL un-shortening service. by sundarurfriend on Friday April 24, 2009 @02:10PM (#577896)
> for [anyone] without the skills to unshorten it themselves

I think I'm one, because I don't know of any way to unshorten these tiny URLs without visiting them or using some such service.

If you know of one, could you enlighten me? Thanks...

Re:Ask HN: Review a simple URL un-shortening service. by Anon84 on Friday April 24, 2009 @05:29PM (#578243)
It's really not hard. For example, on the command line:

     $ curl -I http://tinyurl.com/9a4xj6
     HTTP/1.1 301 Moved Permanently
     X-Powered-By: PHP/5.2.8
     Location: http://www.hostingcoupons.org/godaddy-coupons/
     Content-type: text/html
     Date: Fri, 24 Apr 2009 21:26:48 GMT
     Server: TinyURL/1.6
or in Python:

     >>> import urllib
     >>> u=urllib.urlopen("http://tinyurl.com/9a4xj6")
     >>> u.url
     'http://www.hostingcoupons.org/godaddy-coupons/'
     >>> 
etc...