1
Reply

How to get the date of a file on the web?

Matthew Givens

Matthew Givens

Jan 26 2010 5:06 PM
2.1k
I have an application (.NET 3.5) that runs, scans a webpage for links to PDF files, and downloads those files (using WebResponse). I want to modify it so that it ONLY downloads the file IF it has been changed since my program ran last. So, given that I have the file name:

http://www.SomeWebsite.com/customer_data/document.pdf

How can I determine the creation and last modified date of that file? Preferably WITHOUT downloading the file, of course.

Any suggestions?

Answers (1)
Next Recommended Forum