title: Testing reCAPTCHA locally. Validates on mac, but not on windows
body: <p>I'm testing reCAPTCHA locally on both OS. The keys generated are for domain(s) localhost and 127.0.0.1. </p>
  
  <p>On my mac the SAME EXACT files works flawlessly. I copied said files to my windows computer and my response ALWAYS returns NULL. </p>
  
  <p>HTML</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;This is a test&lt;/title&gt;
  &lt;script src='https://www.google.com/recaptcha/api.js'&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form action="/form.php" method="post"&gt;
      &lt;input type="text" name="name" placeholder="name"&gt;&lt;br&gt;
      &lt;input type="text" name="phone" placeholder="phone"&gt;&lt;br&gt;
      &lt;div class="g-recaptcha" data-sitekey="PUBLIC_KEY"&gt;&lt;/div&gt;
      &lt;input type="submit" name="submit" value="Submit"&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>PHP (SERVER)</p>
  
  <pre><code>&lt;?php 
  
  if (isset($_POST['g-recaptcha-response'])) {
      $captcha = $_POST['g-recaptcha-response'];
      $privatekey = "SECRET_KEY";
      $url = 'https://www.google.com/recaptcha/api/siteverify';
      $data = array(
          'secret' =&gt; $privatekey,
          'response' =&gt; $captcha,
          'remoteip' =&gt; $_SERVER['REMOTE_ADDR']
      );
  
      $curlConfig = array(
          CURLOPT_URL =&gt; $url,
          CURLOPT_POST =&gt; true,
          CURLOPT_RETURNTRANSFER =&gt; true,
          CURLOPT_POSTFIELDS =&gt; $data
      );
  
      $ch = curl_init();
      curl_setopt_array($ch, $curlConfig);
      $response = curl_exec($ch);
      curl_close($ch);
  }
  
  $jsonResponse = json_decode($response);
  
  if ($jsonResponse-&gt;success === true) {
      echo '&lt;br&gt;&lt;p&gt;CAPTCHA was completed successfully!&lt;/p&gt;&lt;br&gt;';
  }
  else {
     echo '&lt;p&gt;Please go back and make sure you check the security CAPTCHA box.&lt;/p&gt;&lt;br&gt;';
  }
  
  ?&gt;
  </code></pre>
  
  <p>Appreciate any help provided. </p>