我有一個在線文件: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