title: ReCAPTCHA always incorrect
body: <p>I have a page with a recaptcha in it, and it had been running without any problem for two months. But now, since a few days, it has been acting weird. I have tried many several times, but the captcha is simply not working, the verification part.</p>
  
  <p>Here is the code</p>
  
  <pre><code>$captcharesponse = test_input($_POST["g-recaptcha-response"]);
  $status = captcha($captcharesponse);
  ...
  function captcha($t){
      $captcharesponse = $t;
      $curl = curl_init();
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($curl, CURLOPT_POST, 1);
      curl_setopt($curl, CURLOPT_URL, 'https://www.google.com/recaptcha/api/siteverify');
      curl_setopt($curl, CURLOPT_POSTFIELDS, 'secret=7...PRIVATE_KEY...S&amp;response=' . $captcharesponse);
  
      $result = json_decode(curl_exec($curl), true);
      curl_close($curl);
  
      if($result['success'] == false){
          error_log(date("Y-M-d, D h:i:s A") . " : Result = " . $result['success'] . ", and error = " . $result['error-codes']);
      }
      return $result['success'];      
  }
  </code></pre>
  
  <p>And no matter what, even if I am not even entering the captcha, still the page is taking too long, and hence nothing is working. Please not that other things are simply skipped if the captcha is wrong, so there is no way that other things are causing the delay.</p>
  
  <p>Thanks in advance</p>
  
  <p>PS. I am not using any kind or library or anything, and it did use to work some time back without any problem.</p>
  
  <p>The 'test_input()' code:</p>
  
  <pre><code>function test_input($data){
         $data = trim($data);
         $data = stripslashes($data);
         $data = htmlspecialchars($data);
         return $data;
  }
  </code></pre>