Re: [Tutor] Fun with Cookies

2007-09-07 Thread Kent Johnson
Alex Ezell wrote: > Kent, > Thanks so much. I will give that a try. Your name is all over these > kinds of questions on the web. I guess you fought through it a while > back? I figured it out for part of the Python Challenge :-) http://www.pythonchallenge.com/ Don't know how it got all over the w

Re: [Tutor] Fun with Cookies

2007-09-07 Thread Alex Ezell
Kent, Thanks so much. I will give that a try. Your name is all over these kinds of questions on the web. I guess you fought through it a while back? Here's where I show off my Python newb status. What's the best way to specify those attributes? If I only include the 4 you mention (name, value, dom

Re: [Tutor] Fun with Cookies

2007-09-07 Thread Kent Johnson
Alex Ezell wrote: > Hi all, > I am trying to create a cookie and send it a long with a request. > > I searched the archives and found this code from Kent Johnson: > > import cookielib, urllib2 > > cj = cookielib.CookieJar() > cookie = cookielib.Cookie(...your cookie data here...) > cj.set_cookie