fork download
  1. <?php
  2.  
  3. $curl = curl_init();
  4.  
  5. CURLOPT_URL => 'https://t...content-available-to-author-only...s.net/drop/a/apiv3/CustomerLoginRequest',
  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. CURLOPT_CUSTOMREQUEST => 'POST',
  13. CURLOPT_POSTFIELDS =>'{
  14. "Data1": "test1",
  15. "Data2" : "123"
  16. }',
  17. CURLOPT_HTTPHEADER => array(
  18. 'Content-Type: application/json',
  19. 'X-Api-Key: 16d6ed9f-c594-4e16-9ca2-bdb0f1650096'
  20. ),
  21. ));
  22.  
  23. $response = curl_exec($curl);
  24.  
  25. curl_close($curl);
  26. echo $response;
  27.  
Success #stdin #stdout 0.03s 26420KB
stdin
Standard input is empty
stdout
Standard output is empty