protected HttpResponse executeCaptchaVerification(final String recaptchaResponse, final String userAgent) {
        val headers = CollectionUtils.<String, String>wrap(
            HttpHeaders.USER_AGENT, userAgent,
            HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_FORM_URLENCODED_VALUE,
            "Accept-Language", "en-US,en;q=0.5");
        headers.putAll(recaptchaProperties.getHeaders());
        val exec = HttpExecutionRequest.builder()
            .method(HttpMethod.POST)
            .url(recaptchaProperties.getVerifyUrl())
            .headers(headers)
            .entity("secret=%s&response=%s".formatted(recaptchaProperties.getSecret(), recaptchaResponse))
            .build();
        return HttpUtils.execute(exec);
    }
This is {@link BaseCaptchaValidator}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-captcha-core/src/main/java/org/apereo/cas/web/BaseCaptchaValidator.java