Httplib Example2

Question

ADDQUESTION

Solution

import httplib
import pudb
pudb.set_trace()
conn = httplib.HTTPConnection("www.python.org")
conn.request("GET","/index.html")
res = conn.getresponse()
print res.getheaders()
print res.getheader('server')
print res.getheader('space','mine')
Run this
Comments by Disqus