title: How can I force Rails to only use TLS over SSL?
body: <p>We are being forced to only use TLS instead of SSL when sending a request to a server, but we don't know how to make sure that the request is being sent using TLS, and if it's not, we're not sure how to force Rails to do it.</p>
  
  <p>Here is how we are sending the request:</p>
  
  <pre><code>uri = URI.parse("https://someurl.com")
  http = Net::HTTP.new(uri.host, uri.port)
  http.use_ssl = true
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
  
  request = Net::HTTP::Post.new(uri.path)
  request.body = body
  http.request(request)
  </code></pre>