fork download
  1. $testUrl = "https://a...content-available-to-author-only...b.com";
  2. $ch = curl_init($testUrl);
  3. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  4. $testResponse = curl_exec($ch);
  5. if ($testResponse === false) {
  6. error_log("Test cURL request failed: " . curl_error($ch));
  7. }
Success #stdin #stdout 0.03s 25568KB
stdin
Standard input is empty
stdout
$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);