Hi Botp,

I got it working thanks to you. I had to start off with require 
'net/https' instead of require 'net/http' and everything worked.

I can't thank you enough for working with me and helping me learn 
something.

take care

jack







jackster the jackle wrote in post #960988:
> botp wrote in post #960976:
>> require 'net/http'
>> #=> true
>> uri = URI.parse("https://www.chase.com/")
>> #=> #<URI::HTTPS:0x83ea2a8 URL:https://www.chase.com/>
>> http = Net::HTTP.new(uri.host, uri.port)
>> #=> #<Net::HTTP www.chase.com:443 open=false>
>> http.use_ssl = true
>> #=> true
>> http.verify_mode = OpenSSL::SSL::VERIFY_NONE
>> #=> 0
>
> That is a good way of doing it, a step at a time through irb...I don't
> usually do it that way but it seems to be a good way to isolate the
> failure if any.
>
> When I get down to the line "http.use_ssl = true", it fails with this
> error message:
>
> irb(main):004:0> http.use_ssl = true
> NoMethodError: undefined method `use_ssl=' for #<Net::HTTP myurl.com:443
> open=false>
>         from (irb):4
> irb(main):005:0>

-- 
Posted via http://www.ruby-forum.com/.