method

get_print

v1_9_2_180 - Show latest stable - Class: Net::HTTP
get_print(uri_or_host, path = nil, port = nil)
public

Get body from target and output it to +$stdout+. The target can either be specified as (uri), or as (host, path, port = 80); so:

Net::HTTP.get_print URI.parse('http://www.example.com/index.html')

or:

Net::HTTP.get_print 'www.example.com', '/index.html'