Create a cookie with cookielib
John J. Lee
jjl at pobox.com
Sun Feb 4 14:17:32 EST 2007
Alessandro Fachin <Alessandro.Fachin at gmail.com> writes:
> 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
No, you don't ;-)
> cookielib to set cookie data, cookie are simply http header :) Inserting
> values with add_header() or addheaders() it works. Thank you
Fine, but see my other post -- I think you misunderstand how cookies
work.
John
More information about the Python-list
mailing list