Source Code

These examples can be run directly in the browser or from any client which speaks HTTP.
You can also send data using tools like cURL.


var http = require('http');

module['exports'] = function isTheWebSiteDown (hook) {
  http.get(hook.params.url, function(res){
    hook.debug(hook.params.url + " is up and running.")
    hook.res.end(hook.params.url + " is up and running.");
  }).on('error', function (){
    hook.debug(hook.params.url + " is DOWN!")
    hook.res.end(hook.params.url + " is DOWN!");

To make your own copy of this service or "Fork" it simply click the button. You will need to register for a Free Account, but it's very quick and easy!