Errors when connecting to HTTPS using HTTP::Net routines (Ruby on Rails)
- by jaycode
Hi all,
the code below explains the problem in detail
#this returns error Net::HTTPBadResponse
url = URI.parse('https://sitename.com')
response = Net::HTTP.start(url.host, url.port) {|http|
http.get('/remote/register_device')
}
#this works
url = URI.parse('http://sitename.com')
response =…