Skip to content

Instantly share code, notes, and snippets.

@roolo
Created March 21, 2012 12:31
Show Gist options
  • Select an option

  • Save roolo/2146612 to your computer and use it in GitHub Desktop.

Select an option

Save roolo/2146612 to your computer and use it in GitHub Desktop.
Ruby https request
require 'net/https'
https = Net::HTTP.new('encrypted.google.com', 443)
https.use_ssl = true
https.verify_mode = OpenSSL::SSL::VERIFY_PEER
https.request_get('/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment