• Post Reply Bookmark Topic Watch Topic
  • New Topic

Comparing previously downloaded html-file with new  RSS feed

 
martin rambo├Ąpple
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have downloaded the target page's html-file successfully,
but how can I find out WHEN that version had its latest update?

Here's how the page is downloaded:



I was thinking of using URLConnection's method getLastModified() for comparison.
But dont have a clue how to read it from this file. Am I perhaps solving the download-part incorrectly?

Snapshot downloaded file text:
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A correctly configured server should be sending a "last modified" header with a GET or HEAD response. See this wikipedia article for all headers.

Bill


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!