You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
require 'net/http'
|
|
|
|
url = URI.parse("")
|
|
req = Net::HTTP::Get.new(url.to_s)
|
|
res = Net::HTTP.start(url.host, url.port) { |http|
|
|
http.request(req)
|
|
}
|
|
|
|
puts res.body |