<reponame>RohitAthithya/learntosolveit<filename>languages/python/web_httplib_head.py<gh_stars>100-1000
import http.client
conn = http.client.HTTPConnection("www.google.com")
conn.request("HEAD","/index.html")
res = conn.getresponse()
for header,value in res.getheaders():
    print(header, value)

import http.client
conn = http.client.HTTPConnection("www.google.com")
conn.request("HEAD","/index.html")
res = conn.getresponse()
for header,value in res.getheaders():
    print(header, value)