Skip to content

Instantly share code, notes, and snippets.

@bigfolio
Created August 29, 2009 05:30
Show Gist options
  • Save bigfolio/177400 to your computer and use it in GitHub Desktop.
Save bigfolio/177400 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'net/http'
require 'open-uri'
site = 'http://somedomain.com'
file = 'index2.php'
begin
html = open(File.join(site,'index2.php')).read
rescue OpenURI::HTTPError
puts "Oops! I couldn't find your website"
exit 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment