Project

General

Profile

Actions

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

Added by taterbase (George Shank) almost 7 years ago. Updated almost 6 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")

Updated by normalperson (Eric Wong) almost 7 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...

Actions #2

Updated by zzak (Zachary Scott) almost 6 years ago

  • Tracker changed from Bug to Feature
Actions

Also available in: Atom PDF