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) over 9 years ago. Updated over 8 years ago.

Status:
Open
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) over 9 years ago

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 (zzak _) over 8 years ago

  • Tracker changed from Bug to Feature
Actions

Also available in: Atom PDF

Like0
Like0Like0