fork download
  1. <?php
  2.  
  3. $curl = curl_init();
  4.  
  5. CURLOPT_URL => 'https://a...content-available-to-author-only...m.ve/oauth/authorize?grant_type=client_credentials&client_id=46fca9e0-e072-11ec-8a2c-e74cdee9beb2&client_secret=a2a46aab-fd01-495e-ade6-68247b8a3867',
  6. CURLOPT_RETURNTRANSFER => true,
  7. CURLOPT_ENCODING => '',
  8. CURLOPT_MAXREDIRS=>10,
  9. CURLOPT_TIMEOUT=>0,
  10. CURLOPT_FOLLOWLOCATION => true,
  11. CURLOPT_HTTP_VERSION=> CURL_HTTP_VERSION_1_1,
  12. CURL_CUSTOMREST=>'POST',
  13. ));
  14.  
  15. $response = curl_exec($curl);
  16.  
  17. ?>
  18.  
Success #stdin #stdout #stderr 0.03s 26516KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Warning:  Use of undefined constant CURL_CUSTOMREST - assumed 'CURL_CUSTOMREST' (this will throw an Error in a future version of PHP) in /home/6Bx73a/prog.php on line 13
PHP Warning:  curl_setopt_array(): Array keys must be CURLOPT constants or equivalent integer values in /home/6Bx73a/prog.php on line 13