Retrieving cookies in Python using urllib2 -
i trying retrieve cookie page running on localhost own python script, having trouble understanding urllib2 documentation. tried looking around examples of retrieving cookies , couldn't find answer. along lines of:
url = "http://localhost:8080" request = urllib2.request(url) sock=urllib2.urlopen(request)
after don't know how fetch cookies, , don't understand code does.
also, there way use urllib2 send cookie back?
thanks!
Comments
Post a Comment