Ruby 发起 HTTPS 请求

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

遇见资源网 ruby Ruby 发起 HTTPS 请求 http://www.ox520.com/16249.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务