Skip to content

Instantly share code, notes, and snippets.

@robertokl
Created April 28, 2010 17:34
Show Gist options
  • Save robertokl/382420 to your computer and use it in GitHub Desktop.
Save robertokl/382420 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'net/https'
uri = URI.parse("https://auth.locaweb.com.br/login")
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = (uri.scheme == 'https')
https.verify_mode = (OpenSSL::SSL::VERIFY_PEER)
raw_res = https.start do |conn|
conn.get("#{uri.path}?#{uri.query}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment