Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created August 30, 2011 11:38
Show Gist options
  • Save oivoodoo/1180714 to your computer and use it in GitHub Desktop.
Save oivoodoo/1180714 to your computer and use it in GitHub Desktop.
require "net/https"
require "uri"
uri = URI.parse("https://secure.com/")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(uri.request_uri)
response = http.request(request)
response.body
response.status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment