Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created December 7, 2011 19:46
Show Gist options
  • Save joegaudet/1444306 to your computer and use it in GitHub Desktop.
Save joegaudet/1444306 to your computer and use it in GitHub Desktop.
require 'net/http'
conn = Net::HTTP.new("https://wwww.matygo.com", 80)
conn.use_ssl = true
puts conn.get("/offerings")
/Users/joe/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:678:in `connect': SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (OpenSSL::SSL::SSLError)
from /Users/joe/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:678:in `block in connect'
from /Users/joe/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/timeout.rb:44:in `timeout'
from /Users/joe/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/timeout.rb:89:in `timeout'
from /Users/joe/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:678:in `connect'
from /Users/joe/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:637:in `do_start'
from /Users/joe/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:626:in `start'
from /Users/joe/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1168:in `request'
from /Users/joe/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:888:in `get'
from loadTest.rb:6:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment