# HTTPS with ruby 1.8.4 on Windows?

**URL:** <https://www.ruby-forum.com/t/https-with-ruby-1-8-4-on-windows/54984>\
**Category:** Ruby\
**Created:** [March 15, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/https-with-ruby-1-8-4-on-windows/54984 "2006-03-15T20:56:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![worldfox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e480ec/32.png) [@worldfox](https://www.ruby-forum.com/u/worldfox)\
**Post date:** [March 15, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/https-with-ruby-1-8-4-on-windows/54984/1 "2006-03-15T20:56:01Z")

</div>

Hello,

does anybody know, what to do to get HTTPS working with ruby 1.8.4 on  
Windows?

I get the error:

RUBY18/lib/ruby/1.8/net/http.rb:565:in `connect': undefined method `verify\_mode’ for nil:NilClass (NoMethodError)  
from I:/PROGRAMS/RUBY18/lib/ruby/1.8/net/http.rb:555:in  
`do_start' from I:/PROGRAMS/RUBY18/lib/ruby/1.8/net/http.rb:544:in `start’  
from I:/PROGRAMS/RUBY18/lib/ruby/1.8/net/http.rb:1031:in  
`request' from I:/PROGRAMS/RUBY18/lib/ruby/1.8/net/http.rb:771:in `get’  
from K:/ssl3.rb:29

The same error is described here:

[http://groups.google.com/group/comp.lang.ruby/browse\_frm/thread/7716d](http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/7716d)  
07d7c549c59

Solution there: “Rolling back to a clean, fresh ruby 1.8.2-15”, but I  
don’t like to do this… .

For test, I used for example this code:

#-----------------------------  
require ‘net/https’

url = URI.parse ‘[https://www.wamu.com](https://www.wamu.com)’  
server = Net::HTTP.new url.host, url.port  
server.use\_ssl = url.scheme == ‘https’  
server.verify\_mode = OpenSSL::SSL::VERIFY\_NONE  
response = server.get url.request\_uri  
puts response.code  
#-----------------------------

I’m using:

ruby 1.8.4 (2005-12-24) [i386-mswin32], Windows 98SE

Regards,

Axel

---

<div class="post-metadata">

**Author:** ![worldfox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e480ec/32.png) [@worldfox](https://www.ruby-forum.com/u/worldfox)\
**Post date:** [March 16, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/https-with-ruby-1-8-4-on-windows/54984/2 "2006-03-16T15:38:01Z")

</div>

This probably doesn’t help you much but your code ran for me  
on Windows XP SP2 using two different versions of ruby 1.8.4:

ruby 1.8.4 (2005-12-24) [i386-mswin32]  
ruby 1.8.4 (2005-12-26) [i386-cygwin]

(One is compiled with Visual C++ and the other with gcc.)

Your code returned a response status of 302, which is a redirect,  
which I believe is the correct response since the https page wants  
to redirect to this page: [Chase Checking Accounts: Compare & Apply Today | Chase](http://www.wamu.com/personal/default.asp).

-lv

---

<div class="post-metadata">

**Author:** ![worldfox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e480ec/32.png) [@worldfox](https://www.ruby-forum.com/u/worldfox)\
**Post date:** [March 29, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/https-with-ruby-1-8-4-on-windows/54984/3 "2006-03-29T20:06:25Z")

</div>

Hi

I got the same problem, same error, works with 1.8.2 doesn’t with 1.8.4

Did you find the problem?

Robert

---

<div class="post-metadata">

**Author:** ![worldfox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e480ec/32.png) [@worldfox](https://www.ruby-forum.com/u/worldfox)\
**Post date:** [March 29, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/https-with-ruby-1-8-4-on-windows/54984/4 "2006-03-29T20:36:49Z")

</div>

> Did you find the problem?

Unfortunately, no.

Axel
