Ruby Programming/Standard Library/Net::HTTP
Tools
General
Sister projects
In other projects
Allows access to downloading webpages.
a 1.8 example:
require 'net/http'mainp = Net::HTTP.new('www.hello.com', 80)response, content = mainp.get('index.html', nil)puts contentHere is the rdoc which contains many examples.
See alsoOpenURI.
how to do it with https (ssl) snippets.dzone.com/posts/show/788