Comments
-
Try this on php. <?php $url = "http://example.com"; // The URL to monitor // Send a request to the URL $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_exec($ch); $responseCode = curl_getinfo($ch,…