Hi,
If you’ve installed the ossl module, you have one example in net/https.rb.
To paraphrase it,
change clear http client code that looks like :
require ‘net/http’
h = Net::HTTP.new(host,port)
h.get… # or h.post…
to:
require ‘net/https’ # ossl module
h = Net::HTTP.new(host,port)
h.use_ssl = true
h.get… # or h.post…
You can find a few more examples in blade. Try searching on ‘use_ssl’ there.
HTH,
Barry
···
-----Original Message-----
From: Daemon [mailto:daemon@le.teamon.com]
Sent: Sunday, September 29, 2002 1:11 PM
To: ruby-talk@ruby-lang.org
Subject: SSL http client code in Ruby?This message uses a character set that is not supported by
the Internet Service. To view the original message content,
open the attached message. If the text doesn’t display
correctly, save the attachment to disk, and then open it
using a viewer that can display the original character set.