Python http.cookiejar

0
7K

The http.cookiejar module defines classes for automatic handling of HTTP cookies. It is useful for accessing web sites that require small pieces of data – cookies – to be set on the client machine by an HTTP response from a web server, and then returned to the server in later HTTP requests.

Both the regular Netscape cookie protocol and the protocol defined by RFC 2965 are handled. RFC 2965 handling is switched off by default. RFC 2109 cookies are parsed as Netscape cookies and subsequently treated either as Netscape or RFC 2965 cookies according to the ‘policy’ in effect. Note that the great majority of cookies on the internet are Netscape cookies. http.cookiejar attempts to follow the de-facto Netscape cookie protocol (which differs substantially from that set out in the original Netscape specification), including taking note of the max-age and port cookie-attributes introduced with RFC 2965.

Search
Categories
Read More
Senses
Understanding Health Senses: The Connection Between Our Senses and Well-being
Our senses—sight, hearing, touch, taste, and smell—are fundamental to how we...
By Dacey Rankins 2024-12-09 13:47:52 0 5K
Water Sports
Benefits of Swimming
Swimming is one of the most popular sports in Australia. Our nation is surrounded by water and...
By FWhoop Xelqua 2023-05-25 21:41:22 0 20K
History
The Treasure of the Sierra Madre. (1948)
Two down-on-their-luck Americans searching for work in 1920s Mexico convince an old prospector to...
By Leonard Pokrovski 2023-02-20 17:13:40 0 16K
Business
Why is Sustainability Important?
In recent years, the concept of sustainability has gained immense importance in discussions...
By Dacey Rankins 2025-02-03 16:00:22 0 7K
Cooking
Top 5 Home Meals to Cook: Delicious, Easy, and Comforting Recipes
Cooking at home can be both rewarding and enjoyable, especially when you prepare meals that are...
By Dacey Rankins 2024-10-11 16:10:52 0 21K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov