On Feb 18, 2009, at 1:26 PM, Bob Smyph wrote: > 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: require 'net/https' and use Net::HTTPS.new perhaps? > > 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. > -- > Posted via http://www.ruby-forum.com/. > Rob Biedenharn http://agileconsultingllc.com Rob / AgileConsultingLLC.com