drbrain/net-http-persistent — Issue #16: Forcing a specific SSL version (for use with Mechanize)
Author: astera
Created: 2012-02-06 08:17:31+00:00
State: open

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