Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created August 30, 2011 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oivoodoo/1180711 to your computer and use it in GitHub Desktop.
Save oivoodoo/1180711 to your computer and use it in GitHub Desktop.
require 'net/https'
require 'open-uri'
url = URI.parse(YOUR_SERVER_URL)
http_session = Net::HTTP.new(uri.host, uri.port)
http_session.use_ssl = true if uri.port == 443
http_session.start { |http|
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment