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

Jan 26 2010 5:06 PM
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)