Ruby 发起 HTTPS 请求 2015/02/12 14275 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("/")