fork download
  1. <?php
  2.  
  3. $curl = curl_init();
  4.  
  5. CURLOPT_URL => 'https://a...content-available-to-author-only...4.uz/client/v4/authentication/code',
  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. "phone": "'.$_GET['num'].'"
  15. }',
  16. CURLOPT_HTTPHEADER => array(
  17. 'Content-Type: application/json'
  18. ),
  19. ));
  20.  
  21. $response = curl_exec($curl);
  22.  
  23. curl_close($curl);
  24. echo $response;
  25.  
Success #stdin #stdout #stderr 0.04s 26652KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined index: num in /home/7lTYAN/prog.php on line 15