# @uri = URI.parse "https://api.******.com/"
def http_post(path,params)
http = Net::HTTP.new(@uri.host, @uri.port)
http.use_ssl = true
http.send_request('POST', path, JSON.dump(params),@header)
end
/Users/xxxx/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock': SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A (OpenSSL::SSL::SSLError)
from /Users/liuxin/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:933:in `connect'
from /Users/liuxin/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
from /Users/liuxin/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:852:in `start'
from /Users/liuxin/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:1398:in `request'
from /Users/liuxin/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:1378:in `send_request'
....
1、这种错误该怎么解决? google 出来的解决方法 stackoverflow没有解决我的问题
2、为什么对有些 HTTPS 的网站不会出现这样的错误?
还望各位大佬能为小弟解惑