RFE: function to dump cookie
Bug #240685 reported by
Stephan Rügamer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-launchpad-bugs |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Dear Colleagues,
please add some functionality to store the cookie received when useing Bug.authentication dict.
Thx :)
\sh
PS: Filed On behalf of Markus :)
Related branches
Changed in python-launchpad-bugs: | |
importance: | Undecided → Medium |
milestone: | none → intrepid |
status: | New → Confirmed |
To post a comment you must log in.
This patch against .main rev 99 adds a save_cookie-method to the HTTPConnection object:
Example usage:
In [1]: from launchpadbugs. connector import ConnectBug
In [2]: Bug = ConnectBug()
In [3]: Bug.connection. save_cookie( "boo")
In [4]: !cat boo www.netscape. com/newsref/ std/cookie_ spec.html
# Netscape HTTP Cookie File
# http://
# This is a generated file! Do not edit.
In [5]: Bug.authentication = {"email": "myemail", "password": "mypassword"}
In [6]: Bug.connection. save_cookie( "boo")
In [7]: !cat boo www.netscape. com/newsref/ std/cookie_ spec.html
# Netscape HTTP Cookie File
# http://
# This is a generated file! Do not edit.
.launchpad.net TRUE / TRUE 123456789 edge somerandomstring
.launchpad.net TRUE / TRUE 123456789 lp somerandomstring
the created file is in the mozilla format used with FF2 since python does not support the new format directly.
Please test and review this patch.
Markus