Script to be used with Pingdom's custom HTTP check.
Inspired by the code described in http://jonsview.com/how-i-use-pingdoms-http-custom-feature
Warning:
As of 20114-08-07, if you are using gzip compression in your server, creating a check pointing to an URL with the output of this script will fail, as the code been used by Pingdom does not yet grok compression.
The solution (at least for Apache), is to explicitly exclude from compression the path to the script in your server config, e.g.: