Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
Sergey Alexandrovich Kryukov 30-Aug-11 17:38pm    
What kind of server? The answer depends on that.
--SA

 
Share this answer
 
v2
Use a web service then.

That is the technique used for general information querying over the network.
 
Share this answer
 
Comments
Youssef_Keyrouz 30-Aug-11 10:27am    
Thank you for your comment. Can you please tell me what web service does that?
CodingLover 30-Aug-11 10:50am    
Web service is basically the service where you can communicate in between remote hosts. Hope you aware about windows services running on your PC. Mainly those services and handling the communication in local machine it self. (Actually there are lots of aspects related, but just forget about those at this moment)

In web service what you can do is create a logic that read your XML file and pick the relevant details and return. What you have to do from the client end is call a web method and return is the reply you are looking for. Are you aware about web methods?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900