Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
HTTPS with ruby 1.8.4 on Windows?
Axel Friedrich
3/15/2006 7:50:00 PM
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/th...
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.wam...
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
2 Answers
robert.cowham
3/29/2006 5:59:00 PM
0
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
Axel Friedrich
3/29/2006 6:30:00 PM
0
> Did you find the problem?
Unfortunately, no.
Axel
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
HTTPS with ruby 1.8.4 on Windows?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password