From: shankga@... Date: 2014-08-28T02:39:23+00:00 Subject: [ruby-core:64597] [ruby-trunk - Bug #10179] [Open] Net::HTTP::Get.new("https://google.com").basic_auth(user_name, password) should throw exception stating the need to set use_ssl to true Issue #10179 has been reported by George Shank. ---------------------------------------- Bug #10179: Net::HTTP::Get.new("https://google.com").basic_auth(user_name, password) should throw exception stating the need to set use_ssl to true https://bugs.ruby-lang.org/issues/10179 * Author: George Shank * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.1 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- Alternatively Net::HTTP could just detect https urls and do this for you. I suggest: raise Exception("Accessing https without ssl\n url:#{URL}\n Please use http.use_ssl = true") -- https://bugs.ruby-lang.org/