fork download
  1. <?php
  2. if( $curl = curl_init() ) {
  3. curl_setopt($curl,CURLOPT_URL,'https://google.com');
  4. curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
  5. curl_setopt($curl,CURLOPT_NOBODY,true);
  6. curl_setopt($curl,CURLOPT_HEADER,true);
  7. $out = curl_exec($curl);
  8. echo $out;
  9. curl_close($curl);
  10. };
  11. ?>
  12.  
Success #stdin #stdout 0.04s 26328KB
stdin
Standard input is empty
stdout
Standard output is empty