$testUrl = "https://a...content-available-to-author-only...b.com"; if ($testResponse === false) { }
Standard input is empty
$testUrl = "https://a...content-available-to-author-only...b.com"; $ch = curl_init($testUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $testResponse = curl_exec($ch); if ($testResponse === false) { error_log("Test cURL request failed: " . curl_error($ch)); } curl_close($ch);