get_print

get_print(uri_or_host, path = nil, port = nil)
Class Public methods

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

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

or:

Net::HTTP.get_print 'www.example.com', '/index.html'
doc_ruby_on_rails
2015-04-20 20:27:22
Comments
Leave a Comment

Please login to continue.