Here's code taken from the help file that comes with Ruby One-Click installer for windows:
require 'net/http'
h = Net::HTTP.new('www.pragmaticprogrammer.com', 80) resp, data = h.get('/index.html', nil) if resp.message == "OK" puts data end
you have the html of the page in the data variable