Windows https - Ruby 1.8.4

Hello

This seems to be a problem with a number of people:
http://www.codecomments.com/archive327-2006-3-848842.html
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/179201

Trying to connect to a https url using the 'net/http' I consistently get the
following error:
==> NoMethodError: undefined method `verify_mode'

The solutions above suggest rolling back to Ruby 1.8.2 but as I'm wanting to
use this on a webhost with 1.8.4 that isn't viable.

Does anyone have a solution to this?

I've looked at using an open-uri patch that would enable me to use that for
https but I'm not sure if it'd be possible to apply that at my shared
hosting account?

Many thankos for your input.

All the best.

Doug

Doug Bromley wrote:

Hello

This seems to be a problem with a number of people:
http://www.codecomments.com/archive327-2006-3-848842.html
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/179201

Trying to connect to a https url using the 'net/http' I consistently get the
following error:
==> NoMethodError: undefined method `verify_mode'

The solutions above suggest rolling back to Ruby 1.8.2 but as I'm wanting to
use this on a webhost with 1.8.4 that isn't viable.

Does anyone have a solution to this?

I was having assorted issues with https-related code that had been working just fine not long ago. After some Googling I came across a post that said that the 1.8.4 Windows installer was placing std-lib files into a different location than had the 1.8.2 installer.

I generally install new versions over the old, so installing 1.8.4 gave me a set-up with almost-duplicate files.

So, it appears, the wrong version of the https lib or one of its dependencies was tripping things up.

I went in and cleaned out the older files, and now life is good again.

ยทยทยท

--
James Britt

http://www.ruby-doc.org - Ruby Help & Documentation
Ruby Code & Style - The Journal By & For Rubyists
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools