cakephp/cakephp — pull request #310 by challet (2011-11-08 18:07:14+00:00)
Title: optionnaly handles redirect before return the response

* adding a *HttpResponse::isRedirect* method : return true if the Status code is one of (301 Moved Permanently, 302 Found, 303 See Other, 307 Temporary Redirect) and the *Location* header is set.
* in the *HttpSocket::request*, optionnaly (if *HttpSocket::config['redirect']* has been set to true) handling the redirect case by doing a recursive call and firing a new request to the according url. It's done just before to return the response.
* adding and adapting automatic tests.