Click here to Skip to main content
14,543,943 members
Rate this:
Please Sign up or sign in to vote.
See more:
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.
Sergey Alexandrovich Kryukov 30-Aug-11 17:38pm
What kind of server? The answer depends on that.
Rate this:
Please Sign up or sign in to vote.

Solution 2

Rate this:
Please Sign up or sign in to vote.

Solution 1

Use a web service then.

That is the technique used for general information querying over the network.
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100