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
vila:~/src :( $ python version_ info() 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') version_ info()[ 7] version_ info()[ 8]
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.
(2, '7.15.4', 462596, 'i486-pc-
>>> print pycurl.
1.2.3
>>> print pycurl.
('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