<gh_stars>1-10
#!/usr/bin/python
__author__ = 'kilroy'
#  (c) 2014, WasHere Consulting, Inc.
#  Written for Infinite Skills

import urllib2

url = "https://www.google.com"
request = urllib2.Request(url)
resp = urllib2.urlopen(request)
cookies = resp.info()['Set-Cookie']
content = resp.read()
resp.close()
print (cookies, content)
#!/usr/bin/python
__author__ = 'kilroy'
#  (c) 2014, WasHere Consulting, Inc.
#  Written for Infinite Skills

import urllib2

url = "https://www.google.com"
request = urllib2.Request(url)
resp = urllib2.urlopen(request)
cookies = resp.info()['Set-Cookie']
content = resp.read()
resp.close()
print (cookies, content)
#!/usr/bin/python #  (c) 2014, WasHere Consulting, Inc. #  Written for Infinite Skills