Skip to content

Instantly share code, notes, and snippets.

@reiddraper
Created August 18, 2010 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reiddraper/536441 to your computer and use it in GitHub Desktop.
Save reiddraper/536441 to your computer and use it in GitHub Desktop.
import httplib
h = httplib.HTTPConnection('www.google.com', 80)
h.request('GET', '/', headers = {'Cookie': 'Cookie1=foo; Cookie2=bar'})
z = h.getresponse()
z.status
z.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment