fork download
  1. <?php
  2.  
  3. $curl = curl_init();
  4.  
  5. CURLOPT_URL => 'https://s...content-available-to-author-only...a.sg/api/auth/player_id_login',
  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 =>'{"app_id":100067,"login_id":"2762003605"}',
  14. CURLOPT_HTTPHEADER => array(
  15. 'Accept: application/json, text/plain, */*',
  16. 'Accept-Language: en;q=0.6',
  17. 'Connection: keep-alive',
  18. 'Content-Type: application/json',
  19. 'Origin: https://s...content-available-to-author-only...a.sg',
  20. 'Referer: https://s...content-available-to-author-only...a.sg/',
  21. 'Sec-Fetch-Dest: empty',
  22. 'Sec-Fetch-Mode: cors',
  23. 'Sec-Fetch-Site: same-origin',
  24. 'Sec-GPC: 1',
  25. 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36',
  26. 'sec-ch-ua: "Not)A;Brand";v="8", "Chromium";v="138", "Brave";v="138"',
  27. 'sec-ch-ua-mobile: ?0',
  28. 'sec-ch-ua-platform: "Windows"',
  29. 'Cookie: datadome=1JLaEhSgVhgN7a8GKAHnlnYMo1bpG3YAvZvQCYLxBYfI9Dx1YYOOKtR922mQlB4TygTHrTeisin~vIT6gP~8EgejV9QZl1nDOCfuMsFl7pbYPSwsAQ~CkJ9KOTcwxgsO; session_key=axzlw1jnilfxas5n1hbibmz42nrorvqp'
  30. ),
  31. ));
  32.  
  33. $response = curl_exec($curl);
  34.  
  35. curl_close($curl);
  36. echo $response;
  37.  
Success #stdin #stdout 0.03s 26748KB
stdin
Standard input is empty
stdout
Standard output is empty