Pages

Sponsorship

40% off your First Order with GoDaddy.com!

Nov 25, 2009

Ruby: Check if an URL is available


This little Ruby function will check if an URL is available (response code 200). It will return true if the return code is 200 (success), false if any other code is returned, such as 404 (not found.)

No comments:

Post a Comment