Project

General

Profile

Actions

Bug #5545

closed

Net::HTTP breaks with https URI objects

Added by ferlatte (Mark Ferlatte) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 2.0.0dev (2011-10-25 trunk 33524) [i686-linux]
Backport:
[ruby-core:40665]

Description

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.


Files

http.rb.diff (797 Bytes) http.rb.diff ferlatte (Mark Ferlatte), 11/04/2011 06:13 AM
Actions

Also available in: Atom PDF