Actions
Feature #10179
openNet::HTTP::Get.new("https://google.com").basic_auth(user_name, password) should throw exception stating the need to set use_ssl to true
Status:
Open
Assignee:
-
Target version:
-
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) about 10 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
Like0
Like0Like0