title: Get EXIF data without downloading whole image - Python
body: <p>Is is possible to get the EXIF information of an image remotely and with only downloading the EXIF data?</p>
  
  <p>From what I can understand about <a href="http://www.media.mit.edu/pia/Research/deepview/exif.html" rel="nofollow">EXIF bytes in image files</a>, the EXIF data is in the first few bytes of an image.  </p>
  
  <p>So the question is how to download only the first few bytes of a remote file, with Python? (Edit: Relying on HTTP Range Header is not good enough, as not all remote hosts support it, in which case full download will occur.) </p>
  
  <p>Can I cancel the download after x bytes of progress, for example? </p>