ZF-11136: Recaptcha urls have changed

Description

The urls have changes into these:


    /**
     * URI to the regular API
     *
     * @var string
     */
    const API_SERVER = 'http://www.google.com/recaptcha/api';

    /**
     * URI to the secure API
     *
     * @var string
     */
    const API_SECURE_SERVER = 'https://www.google.com/recaptcha/api';

    /**
     * URI to the verify server
     *
     * @var string
     */
    const VERIFY_SERVER = 'http://www.google.com';

The old urls are still working but are being redirected.

Comments

This impact hit today my websites! I have manually changed the URLs. Also read this official announcement at http://groups.google.com/group/recaptcha/…

This should be fixed in the next mini release!

There is NO redirect to the new URLs and maybe there won't be any in the future!

Using the VERIFY_SERVER above returns 405 error - "The request method POST is inappropriate for the URL /".

Got it working with

const VERIFY_SERVER = 'http://www.google.com/recaptcha/api/verify';

Updated Zend_Captcha_ReCaptcha using new URIs from official Google announcement: http://groups.google.com/group/recaptcha-announce/…


Index: library/Zend/Service/ReCaptcha.php
===================================================================
--- library/Zend/Service/ReCaptcha.php  (revision 23906)
+++ library/Zend/Service/ReCaptcha.php  (working copy)
@@ -45,21 +45,21 @@
      *
      * @var string
      */
-    const API_SERVER = 'http://api.recaptcha.net';
+    const API_SERVER = 'http://www.google.com/recaptcha/api';

     /**
      * URI to the secure API
      *
      * @var string
      */
-    const API_SECURE_SERVER = 'https://api-secure.recaptcha.net';
+    const API_SECURE_SERVER = 'https://www.google.com/recaptcha/api';

     /**
      * URI to the verify server
      *
      * @var string
      */
-    const VERIFY_SERVER = 'http://api-verify.recaptcha.net/verify';
+    const VERIFY_SERVER = 'http://www.google.com/recaptcha/api/verify';

     /**
      * Public key used when displaying the captcha

No visible effect on result of Zend_Service or Zend_Captcha test suites.

Fixed in trunk r23910

Updated in trunk r23911 (Removed stray var_dump() from Zend_Service_ReCaptcha (bad Adam *smack*))

Hello, Adam. I will push [solve] button as proxy for You. If You want to release at next mini, You can merge this commit fron trunk to 1.11 branch.

Thanks.

Fixed 1.11 branch at r23958

Also, the link to API docs in the code (by options) now results in a 404. New location appears to be:

http://code.google.com/apis/recaptcha/…