httplib2
A comprehensive HTTP client library supporting HTTP and HTTPS, authentication, caching, and more. Current version: 0.31.2, released on January 23, 2026. Maintained with regular updates.
Warnings
- breaking Ensure 'simplejson' is installed for optimal performance; otherwise, 'json' module will be used.
- gotcha Be cautious with SSL/TLS configurations; incorrect settings can lead to security vulnerabilities.
Install
-
pip install httplib2
Imports
- Http
from httplib2 import Http
Quickstart
import os
from httplib2 import Http
# Initialize Http object
http = Http()
# Make a GET request
url = 'http://example.com'
response, content = http.request(url, 'GET')
# Print response status
print(f'Response status: {response.status}')