How to get JSON values and how to trace sessions??

Roozbeh roozbeh73 at gmail.com
Thu Apr 25 10:12:37 EDT 2013


You need to handle the cookie that comes with the server response. Example code:

import urllib2
opener = urllib2.build_opener()
opener.addheaders.append(('Cookie', 'cookiename=cookievalue'))
f = opener.open("http://example.com/")



More information about the Python-list mailing list