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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -