HTTP (Python HTTP Libraries)
Introduction
http
is a package that collects several modules for working with the HyperText Transfer Protocol:
http.client
is a low-level HTTP protocol client; for high-level URL opening use urllib.requesthttp.server
contains basic HTTP server classes based onsocketserver
- http.cookies has utilities for implementing state management with cookies
http.cookiejar
provides persistence of cookies
This is the standard low-level way to work with HTTP in Python. When using this library or any of its derivatives, it's important to remember the principles of the Client-Server Architecture.