Get Html Body
Join the DZone community and get the full member experience.Join For Free
// description of your code here
require 'net/http' port = 80 host = localhost page = 'new' Net::HTTP.start(host, port = p) do |http| response = http.get page response_body = response.body end
Opinions expressed by DZone contributors are their own.