Possible Duplicate:
Check if URL exists in Ruby
Is it possible to check if a URL exists with Ruby?
Possible Duplicate:
Check if URL exists in Ruby
Is it possible to check if a URL exists with Ruby?
It has been asked and answered before.
Please check it here: Check if URL exists in Ruby
I hope it helps