http: add support for specifying the SSL version