B
Bob Smyph
I am having a problem connecting to HTTPS. My program use to need to
connect through HTTP but now we have made a change and need to connect
using HTTPS. Is there anyone out there that could be of assistance?
old code:
def initialize(host = "isac-qa.cbc.local", port = 5203)
@connection = Net::HTTP.new(host, port)
end
have tried this but it does not work:
def initialize(host = "172.31.3.97", port = 8080)
@connection = Net::HTTP.new(host, port)
@connection.use_ssl = true
@connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
end
Thanks for the help.
connect through HTTP but now we have made a change and need to connect
using HTTPS. Is there anyone out there that could be of assistance?
old code:
def initialize(host = "isac-qa.cbc.local", port = 5203)
@connection = Net::HTTP.new(host, port)
end
have tried this but it does not work:
def initialize(host = "172.31.3.97", port = 8080)
@connection = Net::HTTP.new(host, port)
@connection.use_ssl = true
@connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
end
Thanks for the help.