title: How to implement Google Recaptcha 2.0 in ASP Classic?
body: <p>I need help to implement the answer Google Recaptcha 2.0.</p>
  
  <p>I've tried a few ways to recover the response after sending the form but not consigui get the answer True.</p>
  
  <p>Follows the example I'm trying:</p>
  
  <pre><code>recaptcha_secret = "example45454sasa"
  
  sendstring = _
  "https://www.google.com/recaptcha/api/siteverify?" &amp; _ 
  "secret=" &amp; recaptcha_secret &amp; _
  "&amp;response=" &amp; request.form("g-recaptcha-response")
  
  Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
  objXML.Open "GET", sendstring , false
  
  objXML.Send()
  
  if instr(objXML.responseText,"true") then
      response.write "yes"
  else
      response.write "no"
  end if
  </code></pre>
  
  <p>Second exmeplae wehre I using aspJSON1.17.asp library:</p>
  
  <pre><code>recaptcha_secret = "example45454sasa"
  
  Set oJSON = New aspJSON
  
  jsonstring = "https://www.google.com/recaptcha/api/siteverify?secret=" &amp; recaptcha_secret &amp; "&amp;response=" &amp; request.form("g-recaptcha-response") &amp; ""
  
  'Load JSON string
  oJSON.loadJSON("" &amp; jsonstring &amp; "")
  
  'Get single value
  Response.Write oJSON.data("success") &amp; ""
  </code></pre>
  
  <p>The two examples above return False or No.</p>
  
  <p>How do I implement a way to check that Recaptcha were marked?</p>
  
  <p><a href="https://developers.google.com/recaptcha/docs/verify" rel="nofollow noreferrer">*reCaptcha Documentatiom</a></p>
  
  <p>Thanks for yout attention!</p>
  
  <hr>
  
  <p>In the case of Zam as in my example the response that appears on the screen is:</p>
  
  <pre><code>Response: { "success": false, "error-codes": [ "invalid-input-secret" ] }
  </code></pre>
  
  <p>I believe it should appear "True" since I am answering the question correctly.</p>
  
  <p>You can test: bit.ly/1R1cbEs</p>