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

http request with cookie sending

2006-04-18 Thread itay_k
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. for example: import Cookie import cookielib, urllib2 C = Cookie.SimpleCookie() C["a"] = "b" cj = cookielib.CookieJar() cj.set_cookie(C) in the last line I got: