AnsweredAssumed Answered

remote root oject verify recaptcha

Question asked by thinhnk on Mar 7, 2013
Hi,
I have a question that can we verify Recaptcha of Google via remote root-zcoped object, and how can we do it. I do as following but it doezn't seem to work.

uri = "http://www.google.com/recaptcha/api/verify"
body = "privatekey=" + encodeURI(privatekey) + "&remoteip="
    + encodeURI(remoteIp) + "&challenge=" + encodeURI(recaptcha_challenge_field) + "&response=" + encodeURI(recaptcha_response_field);
   var connector = remote.connect("http");
   var result = connector.get(uri);
if(result.status==200){
                model.success = true;
      model.message = new String(result.response);
   }

Thank you for any help.

Outcomes