note 94982 deleted from function.httprequest-send by danbrown

From: Date: Mon, 07 Dec 2009 01:45:02 +0000
Subject: note 94982 deleted from function.httprequest-send by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163630@lists.php.net to get a copy of this message
Note Submitter: aaron at kanuck dot net ---- By default, HttpRequest follows 0 redirects. You can set HttpRequest::options['redirect'] to change the maximum number of redirects, done like so: <?php $request = new HttpRequest($url); $request->setOptions( array('redirect' => 3) ); $response = $request->send(); ?> This will make your HttpRequest follow up to 3 redirections. Many options can be set in this fashion. See http://www.php.net/manual/en/http.request.options.php for many, many more.

« previous php.notes (#163630) next »