Skip to content

Instantly share code, notes, and snippets.

@netbe
Created November 2, 2012 10:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save netbe/4000096 to your computer and use it in GitHub Desktop.
testing ssl ruby 1.9.3
require "net/https"
require "uri"
uri = URI.parse("https://raw.github.com/gist/3778049/6a066850b48e632a49a6e448b1591f6966160a88/dailymotion-sdk-objc.podspec")
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)
puts response.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment