Get body of response
require 'net/http' url = URI.parse('http://www.rubyinside.com/test.txt') response = Net::HTTP.get_response(url) puts response.body