Kent Johnson <[EMAIL PROTECTED]> writes:
> itay_k wrote:
> > Hi,
> >
> > I want to send a cookie on some http request (with urllib2),
> > so I created a Cookie but I cant associate it with CookieJar object.
>
> You have to use a cookielib.Cookie, not Cookie.SimpleCookie():
As I mention in the o
itay_k wrote:
> Hi,
>
> I want to send a cookie on some http request (with urllib2),
> so I created a Cookie but I cant associate it with CookieJar object.
You have to use a cookielib.Cookie, not Cookie.SimpleCookie():
import cookielib, urllib2
cj = cookielib.CookieJar()
cookie = cookielib.Cook