View Single Post
09-26-2009, 01:52 PM
Join Date: Apr 2007
I know this is an old topic, but given the recent bump it should be ok to have a quick chat on the subject.
When trying to resolve where TinyURLs are supposed to go, wouldn't it make more sense just to send a HEAD request to the TinyURL and see where it points rather than scraping the service-specific preview page in the hope the HTML reflects what you want and the value there is accurate.
The HEAD request method should also work across a wide number of URL shortening services making your code much easier if you wish/need to handle multiple services.
View Public Profile
Send a private message to Salathe
Visit Salathe's homepage!
Find More Posts by Salathe