I have a script that checks my public ip address every few minutes.
The problem is the ISP sometimes gives me cached pages (I know, I've used all the related args in wget, the isp is formed by a bunch of incompetent so-and-sos that apparently made their own super-efficient cache server) or error pages made by my own router.
And as a result wget saves the error page when it should save my ip address.
EDIT:
what I'm using to detect changes in ip address
http://paste.debian.net/292602/