Re: Create a cookie with cookielib

2007-02-10 Thread John J. Lee
I'm going to post this if it kills me (this was my first response in this thread, my normal newsfeed has gone bad so can't post reliably...) Alessandro Fachin <[EMAIL PROTECTED]> writes: > Hi, i am trying to forge a new cookie by own with cookielib. But i don't > still have success. This a simply

Re: Create a cookie with cookielib

2007-02-04 Thread Alessandro Fachin
John J. Lee wrote: > Fine, but see my other post -- I think you misunderstand how cookies > work. Maybe you misunderstand me... While i wrote "cookie are simply http header :)" i want to said that i've look at wrong thing, cookielib are not needed... Anyway thank you for help, regards. -- http:

Re: Create a cookie with cookielib

2007-02-04 Thread John J. Lee
Alessandro Fachin <[EMAIL PROTECTED]> 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

Re: Create a cookie with cookielib

2007-02-04 Thread John J. Lee
"Matthew Franz" <[EMAIL PROTECTED]> writes: > 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 > > It may be possible to use CookieJar for

Re: Create a cookie with cookielib

2007-02-04 Thread Alessandro Fachin
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

Re: Create a cookie with cookielib

2007-02-03 Thread Matthew Franz
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 It may be possible to use CookieJar for this purpose but I've only used it for manipulating coo

Create a cookie with cookielib

2007-02-03 Thread Alessandro Fachin
Hi, i am trying to forge a new cookie by own with cookielib. But i don't still have success. This a simply code: import cookielib, urllib, urllib2 login = 'Ia am a cookie!' cookiejar = cookielib.CookieJar() urlOpener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar)) values = {'user':l