import httplib
conn = httplib.HTTPConnection(head)
conn.request("HEAD",tail)
res = conn.getresponse()
print res.status
I am currently using this to get the HTTP header code of a file. However, it seems like this code DOWNLOADS the file, and then gets the code.
However, some files are actually video files...and it would be inefficient for my program to download them.
Is there any way to read the header codes without downloading the file at all?