Script to check if webpage has been updated?

James

Expert Member
Joined
May 26, 2004
Messages
2,617
Reaction score
3
I am trying to write a cron script that will check if a website has been updated and fire an sms on the change. Under normal circumstances this would not be a problem, I just use curl/wget and do a diff on the last fetched file but this is where the trickiness comes in. The website has an initial disclaimer on first access that drops a cookie and I am not sure how to get around this. Even though I have the direct page I need checked, if will always look for the acceptance cookie. The script as I mentioned will be running in cron on a Centos 5, PHP 5 machine.

Ty in advance
 
Magic, was not having any luck with the load-cookies so just disabled the cookies and added the cookie information in the wget header, worked the treat. Thanks.
 
Top
Sign up to the MyBroadband newsletter
X