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 6 years ago. Updated over 5 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")

Also available in: Atom PDF