AW: Google reCaptcha - Verifying a Response in 4D - SOLVED

2020-02-11 Thread Neal Schaefer via 4D_Tech
This was the ticket! Thanks so much Olivier!


>>Date: Tue, 11 Feb 2020 09:51:06 +0100

>>From: mailto:o...@vtxnet.ch>>

>>To: "'4D iNug Technical'" <4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>>

>>Subject: AW: Google reCaptcha - Verifying a Response in 4D

>>Message-ID: 
>><007201d5e0b8$65cc26a0$316473e0$@vtxnet.ch<mailto:007201d5e0b8$65cc26a0$316473e0$@vtxnet.ch>>

>>Content-Type: text/plain;charset="utf-8"



>>Hi Neal,



>>I have done a successful implementation of Google reCaptcha for one of my 
>>customers.



>>I pass the request by http request, parameters inside the url, e.g.



>>https://www.google.com/recaptcha/api/siteverify/?secret=[Key]=[Response]=[client_IP<https://www.google.com/recaptcha/api/siteverify/?secret=%5bKey%5d=%5bResponse%5d=%5bclient_IP>]



>>I get the response inside the response parameter of http request (JSON).



>>HTH,



>>Olivier

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Google reCaptcha - Verifying a Response in 4D

2020-02-09 Thread John DeSoi via 4D_Tech
I'm not doing this, but maybe the link below has a clue. I don't think 4D has a 
built in URL encoding function, so I would double check to ensure that is 
formatted correctly.

https://stackoverflow.com/questions/52416002/recaptcha-error-codes-missing-input-response-missing-input-secret-when-v

John DeSoi, Ph.D.


> On Feb 9, 2020, at 9:52 PM, Neal Schaefer via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Wondering if anyone has written a form submit method that successfully calls 
> the Google API using HTTP Request to validate a recaptcha response? We'd like 
> to write it in 4D directly (rather than PHP or similar). We can get a 
> response but no matter how we send the parameters (text, object, JSON, 
> encoded, not encoded) - we're getting the following error:
> 
> 
> 
> error-codes": [
>"missing-input-response",
>"missing-input-secret" ]
> 
> The docs are pretty straightforward: 
> https://developers.google.com/recaptcha/docs/verify
> 
> If anyone has been successful doing this  - we'd appreciate any input you 
> might have.

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Google reCaptcha - Verifying a Response in 4D

2020-02-09 Thread Neal Schaefer via 4D_Tech
Wondering if anyone has written a form submit method that successfully calls 
the Google API using HTTP Request to validate a recaptcha response? We'd like 
to write it in 4D directly (rather than PHP or similar). We can get a response 
but no matter how we send the parameters (text, object, JSON, encoded, not 
encoded) - we're getting the following error:



error-codes": [
"missing-input-response",
"missing-input-secret" ]

The docs are pretty straightforward: 
https://developers.google.com/recaptcha/docs/verify

If anyone has been successful doing this  - we'd appreciate any input you might 
have.

Thanks in advance,

Neal Schaefer
ABC-CLIO
nschae...@abc-clio.com | 
www.abc-clio.com



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**