HTTP_Client::setMaxRedirects() – Sets the maximum number of redirects that will be processed.


require_once 'HTTP/Client.php';

void HTTP_Client::setMaxRedirects ( int $value )


Setting this value to 0 disables redirect processing. If it is not 0 and the number of redirects after a request is bigger than this number, then an error will be raised.


integer $value

Max number of redirects to process


throws no exceptions thrown


This function can not be called statically.

Sets default header(s) for HTTP requests (Previous) Sets parameter(s) for HTTP requests (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.