From: Martin Bosslet <Martin.Bosslet@...>
Date: 2011-11-17T17:54:32+09:00
Subject: [ruby-core:41096] [ruby-trunk - Bug #5545][Assigned] Net::HTTP breaks with https URI objects


Issue #5545 has been updated by Martin Bosslet.

Status changed from Open to Assigned
Assignee set to Eric Hodel
Target version set to 2.0.0

Thanks, Mark, for reporting this and providing the patch.

As far as I know, Eric is working on a fix for this problem, too?



----------------------------------------
Bug #5545: Net::HTTP breaks with https URI objects
http://redmine.ruby-lang.org/issues/5545

Author: Mark Ferlatte
Status: Assigned
Priority: Normal
Assignee: Eric Hodel
Category: 
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2011-10-25 trunk 33524) [i686-linux]


uri = URI('https://example.com/index.html?count=10')
Net::HTTP.get(uri)

will currently fail with an obscure error due to Net::HTTP attempting to speak HTTP to an HTTPS service.

I believe this is a bug, and have patched lib/net/http.rb to use SSL when you use an https URI with the get and post_form helpers.



-- 
http://redmine.ruby-lang.org