i am trying to connect to https://login.yahoo.com which redirects to what is im assuming a load balanced server. snacktime wrote: > On 10/1/06, jotto <jonathan.otto / gmail.com> 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