note 94982 added to function.httprequest-send

From: Date: Sun, 06 Dec 2009 20:26:10 +0000
Subject: note 94982 added to function.httprequest-send
Groups: php.notes 
Request: Send a blank email to php-notes+get-163626@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 68.232.85.126 ---- Manual Page -- http://www.php.net/manual/en/function.httprequest-send.php Edit -- https://master.php.net/note/edit/94982 Del: integrated -- https://master.php.net/note/delete/94982/integrated Del: useless -- https://master.php.net/note/delete/94982/useless Del: bad code -- https://master.php.net/note/delete/94982/bad+code Del: spam -- https://master.php.net/note/delete/94982/spam Del: non-english -- https://master.php.net/note/delete/94982/non-english Del: in docs -- https://master.php.net/note/delete/94982/in+docs Del: other reasons-- https://master.php.net/note/delete/94982 Reject -- https://master.php.net/note/reject/94982 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163626) next »