fork download
  1. <?php
  2. $curl = curl_init();
  3. curl_setopt($curl, CURLOPT_URL, "https://content-available-to-author-only.com");
  4. curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
  5. curl_setopt($curl, CURLOPT_HTTPGET, TRUE);
  6. curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
  7. $xml_count = curl_exec($curl);
  8.  
  9. echo $xml_count
  10. ?>
  11.  
Success #stdin #stdout 0.04s 26236KB
stdin
Standard input is empty
stdout
Standard output is empty