ActionsLike0
Bug #5545
closedNet::HTTP breaks with https URI objects
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
Added by naruse (Yui NARUSE) about 13 years ago
ActionsLike0
lib/net/http.rb (Net::HTTP.get_response): enable use_ssl
if given URI object is https.
patched by Mark Ferlatte [ruby-core:40665] [Bug #5545]
lib/net/http.rb (Net::HTTP.post_form): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e