fork download
  1. <?php
  2. // Online PHP compiler to run PHP program online
  3. // Print "Try programiz.pro" message
  4.  
  5. // API endpoint
  6. $url = "https://www.google.com/recaptcha/api/siteverify";
  7.  
  8. // Form data payload
  9. $data = [
  10. 'response' => '03AFcWeA4JuL2CqLzWu60dN_lPFE8a7NL-jzXDJ33DM6NQoKH0NzNNqg3X-bMjTPycknm09Y6UEKKaeRcxhwi9IcSvEu8kTnZMfbPH_lVtLAE7LUw7bxZQbMgB6x555jAnYi_x1-Ffurejpyz0YN4TvgzzFD913TNNFXSGgZHz6_oizeOw_pQ112Ra9Z8qWYk_Dm04wjrI7mIco8XUszWKuq5XZbKH1l4qK9sACsphY25EYG9Q6pcxH5HebW3eC8Bg6h40EY1FsGA3bwBMpQpKQsCoQ36l86AkVy8978Ns-KFanCIBhUzCJPeCZzSAPpm4tkgjCQIcpCK-85_kidOxgi_lIrAUGXCgYDPUM11YRzPWfeqteaUUNhyq3cKDrpV8y5Bmf-dm4bi-VLM07Qz_KovagjqJ-c_zN9t_VH25GdpanRoXpw-2SAt5oz_nrfMTDjz1nkcjB4YJHuo-H647ssC326uUKEg2zWxCxLumaVQILmrYLdtBGm__S7POEMjQbio5xNXIMMS1ul4JRFpc850IzfIdTKkCiQvCYlILplUkM_65udr4S_iJivxyiuS0x1G_pVLaRRF14sKH2aIQ8UVS1CIHcTBpwssepogbBBKcvV9dcb-hAwvXolIXlKvZxslX43TnoPuCXgzLGaZq7Jn-DlpZLPYTgAxapz0E-93jOe5p5IHjOnosD7P4L5cPy55E2GyLtdqqnFH5XnqxHvECZZJb4D3lH_INiMnva-k6MVXkfeXLOt3zCl1SzPuHHiMZA5Rob7-Z4gDSBi4775f36ts3KcUCx2RZ_Y7ph8hMfMxTTJlfdfLQiFyMNRRfg-Az5c2Vz6FVqmnpWE0rBDBb7YQVWi9tdOK0xd7y7-aKx4TyMrmcHAef1YNbqvgjJGwaQkNfE0ilj4-lPEE0TRQw3RCFg7l2gi-_aUfvK784yTwGZf1mW3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B-'
  12. ];
  13.  
  14. // Use cURL to send the POST request
  15. $ch = curl_init($url);
  16. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  17. curl_setopt($ch, CURLOPT_POST, true);
  18. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  19.  
  20. // Execute the request and capture the response
  21. $response = curl_exec($ch);
  22.  
  23. // Check for errors
  24. if (curl_errno($ch)) {
  25. echo 'Error:' . curl_error($ch);
  26. } else {
  27. // Parse and print the response
  28. $responseData = json_decode($response, true);
  29. print_r($responseData);
  30. }
  31.  
  32. // Close the cURL session
  33. ?>
Success #stdin #stdout 0.03s 26368KB
stdin
Standard input is empty
stdout
Error:Could not resolve host: www.google.com