Undefined method `use_ssl=' for #<Net::HTTP

hi all,

#----------------------
client = XMLRPC::Client.new(“localhost”, path, 443, nil, nil, nil, nil,
true, 30)
#----------------------

when i run it, throw a exception:
undefined method `use_ssl=’ for #<Net::HTTP localhost:443 open=false>

my box is centOS, but it’s works on another box,
seems related ruby environment,

any one can give me a hint.

all regards

Joe B. wrote:

no one knows?

I was having the same problem.

require ‘net/http’
require ‘net/https’

no one knows?

Daniel W., thanks! :slight_smile: just inattention.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs