Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created February 8, 2017 20:25
Show Gist options
  • Save IanVaughan/2ef15ce3a7842f7c49137064f8bd295e to your computer and use it in GitHub Desktop.
Save IanVaughan/2ef15ce3a7842f7c49137064f8bd295e to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'net/https'
https = Net::HTTP.new('encrypted.google.com', 443)
https.use_ssl = true
https.verify_mode = OpenSSL::SSL::VERIFY_PEER
puts https.request_get('/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment