httplib2

0.31.2 · active · verified Sat Mar 28

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

Install

Imports

Quickstart

Basic usage example demonstrating how to make a GET request using httplib2.

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}')

view raw JSON →