获取XML文件的版本,而无需从服务器下载它 [英] Get the version of an XML file without downloading it from the server
问题描述
你好,
服务器上是否有XML文件.
有没有一种方法可以获取版本或上次修改日期,而无需下载文件并从中读取文件?
基本上,我要检查的是文件是否比PC上的版本新.请下载文件;如果不是,请不要下载文件.
我现在下载它并检查它的版本.但是,如果它是相同版本或具有相同的上次修改日期,我不想浪费时间进行下载.
非常感谢您的帮助.希望我的问题很清楚.
Hello,
If there is an XML file on a server.
Is there a way to get it''s version or last modified date without downloading the file and reading them from it?
Basically what I''m trying to do is to check if the file is a newer version than the one on my PC Download it, and if not, do not download it.
I now download it and check it''s version. But I don''t want to waste time downloading if it is the same version or has the same last modified date.
Thank you very much for any help. Hope my question was clear.
推荐答案
看看下面的链接.
http://stackoverflow.com/questions/2140704/c-ftpwebrequest-file-version-check
Have a look at below link.
http://stackoverflow.com/questions/2140704/c-ftpwebrequest-file-version-check
然后使用Web服务.
这是用于通过网络查询常规信息的技术.
Use a web service then.
That is the technique used for general information querying over the network.
这篇关于获取XML文件的版本,而无需从服务器下载它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!