drbrain / net-http-persistent

Thread-safe persistent connections with Net::HTTP
http://seattlerb.rubyforge.org/net-http-persistent
339 stars 117 forks source link

Forcing a specific SSL version (for use with Mechanize) #16

Closed astera closed 12 years ago

astera commented 12 years ago

Ehlo,

as pointed out in http://stackoverflow.com/questions/9150032/using-mechanize-or-even-nethttp-with-ruby-1-9-returns-opensslsslsslerro, some servers might have issues with renegotiating an SSL version, and so in that case it'd be more than handy to force a specific version right away when trying to establish a connection.

This is pretty much a feature request in the way of what the Net::HTTP object's ssl_version method does - so one would be able to use that particular functionality from the Mechanize gem via net-http-persistent (like, 'agent.ssl_version = "SSLv3"').

Cheers, /astera