You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

462 B

Javascript

Below is an example of making a HTTP request to SITE_NAME from Node.js.

var https = require('https');
https.get('PING_URL').on('error', (err) => {
    console.log('Ping failed: ' + err)
});

You can also send pings from a browser environment. SITE_NAME sets the Access-Control-Allow-Origin:* CORS header, so cross-domain AJAX requests work.

var xhr = new XMLHttpRequest();
xhr.open('GET', 'PING_URL', true);
xhr.send(null);