public
Created

testing ssl ruby 1.9.3

  • Download Gist
test.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.