http.cookies

Stdlib — NetworkingPython 2.0+Advanced

HTTP cookie handling: parsing and generating headers

Quick Info

Documentation
Official Docs
Python Version
2.0+
Dependencies
None — Python Standard Library
Install
Included with Python

Learn by Difficulty

Quick Example

python
import http.cookies

print(f"Module: http.cookies")
print(f"Contents: {dir(http.cookies)[:10]}")

The http.cookies module is part of Python's standard library. HTTP cookie handling: parsing and generating headers.

Try in Playground

Tags

stdlibnetworkinginternet