fork download
  1. <?php
  2. $curl = curl_init();
  3.  
  4. CURLOPT_URL => "https://p...content-available-to-author-only...s.io/screenshot?token=2SYqtM3PXCqKCPgf13aad949ffbfbdc19187b863c85070042",
  5. CURLOPT_RETURNTRANSFER => true,
  6. CURLOPT_ENCODING => "",
  7. CURLOPT_MAXREDIRS => 10,
  8. CURLOPT_TIMEOUT => 30,
  9. CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  10. CURLOPT_CUSTOMREQUEST => "POST",
  11. CURLOPT_POSTFIELDS => "{\n \"url\": \"https://e...content-available-to-author-only...e.com/\",\n\t\"options\": {\n\t\t\"fullPage\": true,\n\t\t\"encoding\": \"base64\"\n\t}\n}",
  12. CURLOPT_HTTPHEADER => [
  13. "Content-Type: application/json"
  14. ],
  15. ]);
  16.  
  17. $response = curl_exec($curl);
  18. $err = curl_error($curl);
  19.  
  20. curl_close($curl);
  21.  
  22. if ($err) {
  23. echo "cURL Error #:" . $err;
  24. } else {
  25. echo $response;
  26. }
  27. ?>
  28.  
Success #stdin #stdout 0.03s 26096KB
stdin
Standard input is empty
stdout
cURL Error #:Could not resolve host: production-sfo.browserless.io