note 91914 deleted from function.httprequest-send by danbrown

From: Date: Wed, 01 Jul 2009 14:08:03 +0000
Subject: note 91914 deleted from function.httprequest-send by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157775@lists.php.net to get a copy of this message
Note Submitter: marcus at synchromedia dot co dot uk ---- mjs at beebo dot org is not quite right. You can get redirects to be handled automatically by setting the 'redirect' option: <?php $request = new HttpRequest($url, HTTP_METH_GET, array('redirects' => 10)); $response = $request->send(); ?> Also following redirects forever is generally a bad idea - it may be an infinite loop.

« previous php.notes (#157775) next »