0
votes

Google RECAPTCHA always returning error missing-input-response in the response when I try to check the correctness. How does the call to the service go, to the URL https://www.google.com/recaptcha/api/siteverify ?

2

2 Answers

1
votes

The format is: https://…/api/siteverify?secret=[…]&response=[…]&remote_ip=[…]

1
votes

Make sure that Content-Type is set to application/x-www-form-urlencoded

.Net example

using (HttpClient httpClient = new HttpClient())
{
var response = await httpClient.PostAsync(GoogleVerificationUrl + "?secret=" + ReCaptchaSecretKey + "&response=" + ReCaptchaResponse, new StringContent("", Encoding.UTF8, "application/x-www-form-urlencoded"));                                        
}