获取文件创建日期在HTTP [英] Get File Creation Date Over HTTP
问题描述
鉴于Web服务器的文件(例如, http://foo.com/bar.zip - >只能通过访问HTTP),有没有什么办法没有在第一时间下载整个存档来获得日期属性(例如,日期[创建,修改])?
Given a file on a webserver (e.g., http://foo.com/bar.zip -> only accessible through HTTP), is there any way to get the date attributes (e.g., date [created, modified]) without downloading the entire archive in the first place?
现在,我下载的存档和编程读取属性。麻烦的是,档案是几十MIB,所以它似乎是一种资源的浪费,下载整个事情并最终读完只是几个字节的信息。
Right now, I download the archive and read the attributes programmatically. Trouble is that the archive is dozens of MiB so it seems like a waste of resources to download the entire thing and end up reading off just a couple of bytes of information.
我认识到,带宽几乎是免费的,但我不喜欢在任何情况下浪费了。
I realize that bandwidth is practically free, but I don't like to be wasteful in any case.
推荐答案
这篇关于获取文件创建日期在HTTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!