Create a cookie with cookielib
Alessandro Fachin
Alessandro.Fachin at gmail.com
Sun Feb 4 03:09:02 EST 2007
Matthew Franz wrote:
> I'm not sure what you mean be forge, but if you mean set an arbitrary
> cookie manually (vs. one that was provided by the server). just use
> add_header() in http://docs.python.org/lib/request-objects.html
Yes is exactly what i want to do... i don't known because i looked at
cookielib to set cookie data, cookie are simply http header :) Inserting
values with add_header() or addheaders() it works. Thank you
> It may be possible to use CookieJar for this purpose but I've only
> used it for manipulating cookies set by the server...
>
> And I would agree that Python cookie APIs are less intuitive than
> what are available in others such as Jakarta HttpClient....
>
> - mdf
More information about the Python-list
mailing list