Ticket #4922 enhancement closed fixed
CookieAgent to add support for HTTP cookie handling
|Reported by:||gabrtv||Owned by:||jonathanj|
|Author:||Gabriel Monroy, jonathanj||Launchpad Bug:|
This patch extents the twisted.web.client.Agent to add support for handling HTTP cookies. The new CookieLibAgent requires a cookieJar that implements the cookielib.CookieJar interface. Cookies are then automatically set and extracted during Agent request processing.
At the time of writing, this patch was built atop #3420 (Agent Persistent Connections).
This submission does not yet have tests. However it is performing relatively well inside a larger unit test infrastructure. I will try to add tests as my schedule permits, but I wanted to contribute the patch now in case others might find it useful.