Comment 2 for bug 85305

Revision history for this message
Vincent Ladeuil (vila) wrote :

vila:~/src :( $ python
Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycurl
>>> print pycurl.version_info()
(2, '7.15.4', 462596, 'i486-pc-linux-gnu', 1581, 'GnuTLS/1.4.0', 0, '1.2.3', ('tftp', 'ftp', 'telnet', 'dict', 'ldap', 'http', 'file', 'https', 'ftps'), None, 0, '0.6.3')
>>> print pycurl.version_info()[7]
1.2.3
>>> print pycurl.version_info()[8]
('tftp', 'ftp', 'telnet', 'dict', 'ldap', 'http', 'file', 'https', 'ftps')

info(7) is ssl_version_num, 0 if not available (documented).

info(8) should not contain https if ssl not available (my guess).

I can't test that on windows right now, but that seems more reliable that guessing from the human-readable pycurl.version

Hth