Overview

Requests 2.32, released on May 30, 2024, adds compatibility with urllib3 2.x.

Main Features

urllib3 2.x support

Requests is now compatible with urllib3 2.x and its SSL and encoding changes.

python
import requests

response = requests.get('https://httpbin.org/get')
print(response.status_code)  # 200
print(response.json()['origin'])

# Compatible with urllib3 1.x and 2.x
session = requests.Session()
session.headers.update({'Accept': 'application/json'})

Sources