2020-07-07 18:36:41 +02:00

550 B

PHP

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

file_get_contents('https://hc-ping.com/your-uuid-here');

If you'd like to setup timeout and retry options, as discussed in the reliability tips section, there is a curl package available that lets you do that easily:

use Curl\Curl;

$curl = new Curl();
$curl->setRetry(20);
$curl->setTimeout(5);
$curl->get('https://hc-ping.com/your-uuid-here');  

Note: this code never throws any exception.