We setup our reCaptcha on our webserver using Java/JSP. When I call
the reCaptcha.checkAnswer() function, we received the following error
code after a long wait:
net.tanesha.recaptcha.ReCaptchaException: Cannot load URL: Tried all:
'1' addresses, but could not connect over HTTP to server: 'api-
verify.recaptcha.net', port: '80'
CODE:
String remoteAddr = request.getRemoteAddr();
ReCaptchaImpl reCaptcha = new ReCaptchaImpl();
reCaptcha.setPrivateKey(PRIVATEKEY);
ReCaptchaResponse reCaptchaResponse =
reCaptcha.checkAnswer(remoteAddr, challenge, capresponse);
Our network administrators suggested defining a local proxy address to
send the request to the reCaptcha server for form validation.
Are there any methods in the reCaptcha API that allow me to specify
the proxy address to send from, so that we can go around our load
balancer and firewall.