Re: http request with cookie sending

2006-04-20 Thread John J. Lee
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

Re: http request with cookie sending

2006-04-19 Thread Kent Johnson
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