fork download
  1. <?php
  2. $curl = curl_init();
  3.  
  4. CURLOPT_URL => 'dd',
  5. CURLOPT_RETURNTRANSFER => true,
  6. CURLOPT_ENCODING => '',
  7. CURLOPT_MAXREDIRS => 10,
  8. CURLOPT_TIMEOUT => 0,
  9. CURLOPT_FOLLOWLOCATION => true,
  10. CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  11. CURLOPT_CUSTOMREQUEST => 'POST',
  12. CURLOPT_POSTFIELDS =>'{ "authtoken" :"6gfG97fTGrx7ELcGXqAA5UGJXTHx94"
  13. }',
  14. CURLOPT_HTTPHEADER => array(
  15. 'Content-Type: application/json',
  16. 'Cookie: PHPSESSID=a4ee34bdab7507318b6d12e32f44cbf6'
  17. ),
  18. ));
  19.  
  20. $response = curl_exec($curl);
  21.  
  22. curl_close($curl);
  23. echo $response;
  24. ?>
  25.  
Success #stdin #stdout 0.03s 26348KB
stdin
Standard input is empty
stdout
Standard output is empty