[2.5.1/cookielib] How to display specific cookie?
nospam at nospam.com
Wed Apr 7 18:56:08 CEST 2010
I'm using ActivePython 2.5.1 and the cookielib package to retrieve web
I'd like to display a given cookie from the cookiejar instead of the
for index, cookie in enumerate(cj):
print index, ' : ', cookie
#How to display just PHPSESSID?
#AttributeError: CookieJar instance has no attribute '__getitem__'
print "PHPSESSID: %s" % cj['PHPSESSID']
I'm sure it's very simple but googling for this didn't return samples.
More information about the Python-list