Ruby 发起 HTTPS 请求

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

require 'net/https'                             # => true
require 'net/http'

uri = URI.parse("https://www.yourDomain.gov/")

request = Net::HTTP.new(uri.host, uri.port)
response = request.get("/")