Mohamed
Mohamed

Reputation: 1597

check if update web page

i downloaded a web page ".html" on mu hard disk i would like to check if this page has been updated recently without downloading the page again.. P.S. when i use last-modified it doesn't work on some servers Can anyone help me?? thanks in advance

Upvotes: 1

Views: 367

Answers (1)

user34537
user34537

Reputation:

If last-modified doesnt work you cant really check. However you can fudge it by checking the content length if the content length is always the same unless updated. I assume you already know you can use the HEAD method to check a page without getting the content.

Upvotes: 1

Related Questions