Module Functionality¶
- pycurl.global_init(option)¶
- option is one of the constants pycurl2.GLOBAL_SSL, pycurl2.GLOBAL_WIN32,
- pycurl2.GLOBAL_ALL, pycurl2.GLOBAL_NOTHING, pycurl2.GLOBAL_DEFAULT.
- Corresponds to `curl_global_init`_ in libcurl.
- pycurl2.global_cleanup()¶
- Corresponds to `curl_global_cleanup`_ in libcurl.
- pycurl2.version_info()¶
Corresponds to curl_version_info in libcurl. Returns a tuple of information which is similar to the curl_version_info_data struct returned by curl_version_info in libcurl.
Example usage:
>>> import pycurl2 >>> pycurl2.version_info() (2, '7.12.3', 461827, 'i586-pc-linux-gnu', 1565, 'OpenSSL/0.9.7e', 9465951, '1.2.2.1', ('ftp', 'gopher', 'telnet', 'dict', 'ldap', 'http', 'file', 'https', 'ftps'), None, 0, '0.5.12')