>> Is there any way to fetch a website's host/version headers using
>> Python?
>
> >>> import httplib
> >>> conn = httplib.HTTPConnection("docs.python.org")
> >>> conn.connect()
> >>> conn.request("HEAD", "/")
> >>> response = dict([(k.lower(), v) for k,v in conn.getresponse()])
> >>> conn.c
> Is there any way to fetch a website's host/version headers using
> Python?
>>> import httplib
>>> conn = httplib.HTTPConnection("docs.python.org")
>>> conn.connect()
>>> conn.request("HEAD", "/")
>>> response = dict([(k.lower(), v) for k,v in conn.getresponse()])
>>> conn.close()
>>> serv
Is there any way to fetch a website's host/version headers using
Python?
Thanks,
Harlin
--
http://mail.python.org/mailman/listinfo/python-list