J'utilise reCAPTCHA sur this page mais quand je soumets que j'obtiens l'erreur suivante dans mon journal apache: Cela commencé à se produire après avoir mis ssl à true (je dois l'utiliser, becouse site est SSL)reCAPTCHA (Zend_Service_ReCaptcha) lancers francs « Impossible de se connecter à tcp: //api-verify.recaptcha.net: 80 »
[Wed Jul 28 18:47:54 2010] [error] [client X.X.31.80] PHP Fatal error: Uncaught exception 'Zend_Http_Client_Adapter_Exception' with message 'Unable to Connect to tcp://api-verify.recaptcha.net:80. Error #110: Connection was inactive for a long time' in /XXX/local/XXX-php-XXX/library/Zend/Http/Client/Adapter/Socket.php:235\nStack trace:\n#0 /XXX/local/XXX-php-XXX/library/Zend/Http/Client.php(976): Zend_Http_Client_Adapter_Socket->connect('api-verify.reca...', 80, false)\n#1 /usr/local/XXX-php-XXX/library/Zend/Service/ReCaptcha.php(487): Zend_Http_Client->request('POST')\n#2 /usr/XXX/XXX-php-XXX/library/Zend/Service/ReCaptcha.php(502): Zend_Service_ReCaptcha->_post('03AHJ_Vuuj0ZWOY...', 'adaptors of')\n#3 /XXX/XXX/XXX-php-XXX/XXX/registration.php(111): Zend_Service_ReCaptcha->verify('03AHJ_Vuuj0ZWOY...', 'adaptors of')\n#4 {main}\n thrown in /XXX/local/XXX-php-XXX/library/Zend/Http/Client/Adapter/Socket.php on line 235, referer: https://forum.esfcr.cz/registration.htm
Toute personne qui sait ce qui se passe? Comme vous le voyez, j'utilise SSL. Mon code PHP est:
$recpatcha = new Zend_Service_ReCaptcha(
'6LdXXXXXXXXXXXXX9uy_D6rKXXXq9eM',
'6LdXXXXXXXXXXXXXXXXXXXXndQ5X9ny',
array('ssl' => true),
array ('theme' => 'white', 'timeout' => 800));
et traitement POST $:
$resp = $recpatcha->verify($_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
Merci