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) about 10 years ago. Updated about 9 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")

Actions

Also available in: Atom PDF

Like0
Like0Like0