O'Reilly logo

Python: Essential Reference, Third Edition by David Beazley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

cookielib

The cookielib module provides client-side support for managing HTTP cookies. The primary use of this module is in conjunction with the urllib2 module, which is used to access documents on the Internet. For instance, the cookielib module can be used to capture cookies and to retransmit them on subsequent connection requests. It can also be used to work with files containing cookie data such as files created by various browsers.

						CookieJar([policy])

Creates a new CookieJar instance that is responsible for holding HTTP cookie values, storing cookies received as a result of HTTP requests, and adding cookies to outgoing HTTP requests. policy is an instance of CookiePolicy. The purpose of policy is to define various handling rules regarding ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required