Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6470483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:07:00+00:00 2026-05-25T06:07:00+00:00

If there is an XML file on a server. Is there a way to

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:07:00+00:00Added an answer on May 25, 2026 at 6:07 am

    you could make a C# (or any language for that matter) Generic Handler (or script or page) that takes 1 parameter FileName (of the XML file) and writes the last modified date to the output. Then, if the date catches your fancy, you start your download

    Here is an example for a Generic Handler (note that it probably still needs some error catching):

    public void ProcessRequest(HttpContext context)
    {
     context.Response.ContentType = "text/plain";
     string fileName = context.Request.QueryString.Get("fileName");
     FileInfo fileInfo = new FileInfo(Server.MapPath(".") + "/" + fileName);
     context.Response.Write(fileInfo.LastWriteTime.ToString());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to read off from an [external] xml (an xml file
Is there a way to validate an XML file against a DTD with Qt's
Is there an easy way with LINQ to flatten an XML file? I can
Is there any way to strip elements out of a web.xml file using ANT?
I parse some values from an xml file. There is a @25-12-2010'T'23:40:00 string with
I'm trying to get data from a webpage that serves a XML file periodically
say there is an xml file, which not created by me, with a known
Is there any other place besides the metabase.xml file where the file upload size
Is there any PHP script to convert XML file to DTD. I tried a
Is there a ColdFusion analog for the deployment descriptor/web.xml file found in a J2EE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.