找我吧。活好。
发欧元,找我。
something else
require 'net/https'
require 'uri'
uri = URI.parse('https://liuwm-pc:8081/2.html')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
if uri.scheme == "https" # enable SSL/TLS
http.cert =OpenSSL::X509::Certificate.ne(File.read("D:/111/client.crt"))
http.key =OpenSSL::PKey::RSA.new((File.read("D:/111/client.key")), "123456")# key and password
http.verify_mode = OpenSSL::SSL::VERIFY_NONE #这个也很重要
http.start {
http.request_get(uri.path) {|res|
print res.body
}
}
我都用过,可以不。
try this
require 'excon'
require 'tach'
Excon.defaults[:ssl_ca_path] = "d:\\"
Excon.defaults[:ssl_ca_file] = 'D:\\run.cer'
#Excon.defaults[:ssl_verify_peer] = false
response = Excon.get('https://ruby-china.org')
response.body # => "..."
p response.headers # => {...}
p response.remote_ip # => "..."
p response.status # => 200
每周两天在家办公?周六周日?办公?
深圳的工作地点?年薪具体多少?什么水平?