Suppose I haev a video file:
http://mydomain.com/thevideofile.mp4
How do I get the header and the content-type of this file? With Python. But , I don't want to download the entire file. i want it to return:
video/mp4
Edit: this is what I did. What do you think?
f = urllib2.urlopen(url)
params['mime'] = f.headers['content-type']