Can you get more information about the online file?
Question: I have a online file: <http://dl_dir.qq.com/qqfile/tm/TM2009Beta_chs.exe>
,please donot download it, i want to determine the software version whether is
changed, so i want more information about it. for example, using python,i can
get this:

    
    
    import urllib2,urllib
    req = urllib2.Request('http://dl_dir.qq.com/qqfile/tm/TM2009Beta_chs.exe')        
    response = urllib2.urlopen(req)
    print response.info()
    print response.geturl()
    
    Content-Length: 16868680
    Server: qqdlsrv(1.84 for linux)
    Connection: close
    Content-Disposition: attachment; filename=TM2009Beta_chs.exe
    Accept-Ranges: bytes
    Content-Type: application/octet-stream
    
    http://dl_dir.qq.com/qqfile/tm/TM2009Beta_chs.exe
    

Can you get more imformation to let me determine the software version is
changed?


Answer:   1. Download the first thousand bytes or so of the file using the range header.

  2. Use [pefile](http://code.google.com/p/pefile/) to parse the PE header and extract version information.

  3. With the data, [extract useful information](http://books.google.com/books?id=Pas0YoxygnkC&pg=PA40&lpg=PA40&dq=pe+header+layout&source=bl&ots=QmWK2D3niq&sig=FEWTlTHlaukrlQ-mHybNqW81BjY&hl=en&ei=LuGASpnPH42YsgOj5JH9CA&sa=X&oi=book%5Fresult&ct=result&resnum=3#v=onepage&q=pe%20header%20layout&f=false) such as the time date stamp and other goodies that let you find changes in files without reading the whole thing.

