3 $p = new HttpRequestPool
;
4 // if you want to set _any_ options of the HttpRequest object,
5 // you need to do so *prior attaching* to the request pool!
6 $p->attach(new HttpRequest('http://pear.php.net', HTTP_METH_HEAD
));
7 $p->attach(new HttpRequest('http://pecl.php.net', HTTP_METH_HEAD
));
8 } catch (HttpException
$e) {
15 // HttpRequestPool implements an iterator over attached HttpRequest objects
17 echo "Checking ", $r->getUrl(), " reported ", $r->getResponseCode(), "\n";
19 } catch (HttpException
$e) {