我有一个在线文件:http://dl_dir.qq.com/qqfile/tm/TM2009Beta_chs.exe,请不要下载它,我想确定软件版本是否更改,所以我想了解更多的信息。例如,使用python,我能得到这个:你能获得更多关于在线文件的信息吗?
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
你可以得到更多的imformation让我确定软件版本改变了吗?
这几乎是**最有效的方式来浪费你的带宽。为了获得最大效率,我建议在4chan上发帖“嘿,你们带宽很贵,不要下载这个文件。” – 2009-08-11 03:03:03
除了URL,确切的重复http://stackoverflow.com/questions/1253282/how-can-i-get-the-file-version-on-the-internet-but-not-download-it – mhawke 2009-08-11 03:48:12