Link to home
Start Free TrialLog in
Avatar of wsyy
wsyy

asked on

How to know if a web page's last update time

Hi,

As noted above, I want to use Java to detect a web page's last update time via httpresponse, etc. I don't want to save the web page's contents and verify through the contents.

Thanks
Avatar of Mick Barry
Mick Barry
Flag of Australia image

check the Last-Modified value in the http response header
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wsyy
wsyy

ASKER

what if the header doesn't include the info? are there any other ways?
not unless they including it some other custom header
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wsyy

ASKER

calboronster:

My crawling application wants to detect the changes of a web page ever since last crawl. The solution you provided seems that a good check can be done only on the server side which may not help my case.

Thanks
>>The solution you provided seems that a good check can be done only on the server side which may not help my case.

I wonder why you accepted it then?