Project

General

Profile

Feature #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

Added by taterbase (George Shank) over 5 years ago. Updated about 4 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:64597]

Description

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")

History

Updated by normalperson (Eric Wong) over 5 years ago

shankga@gmail.com wrote:

Alternatively Net::HTTP could just detect https urls and do this for you.

This sounds good. I cannot think of any downside...

#2

Updated by zzak (Zachary Scott) about 4 years ago

  • Tracker changed from Bug to Feature

Also available in: Atom PDF