Re: Finding web host headers

2006-06-01 Thread Tim Chase
>> 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

Re: Finding web host headers

2006-06-01 Thread Tim Chase
> 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

Finding web host headers

2006-06-01 Thread Harlin Seritt
Is there any way to fetch a website's host/version headers using Python? Thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list