From: snacktime Date: 2006-10-02T15:56:14+09:00 Subject: Re: open-uri and HTTPS, or net/https with a redirect On 10/1/06, jotto wrote: > Is there anything wrong with using this patch? > > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/4365 > Do you need it? That only provides the ability to check the validity of a server certificate. You don't need that just to connect via ssl. > How do you implement it? > > If not a good solution, can net/http be used with HTTPS sites and can > redirection be built in? > Not sure what you mean by redirection. Here is an example of an ssl POST. require 'net/https' https = Net::HTTP.new(host,port) https.use_ssl = true headers = { 'Referer' => '', 'Content-Type' => 'application/x-www-form-urlencoded' } response = https.post(path, request, headers) p response.body