7 checkcls('HttpRequestPool');
8 checkurl('www.php.net');
9 checkurl('pear.php.net');
10 checkurl('pecl.php.net');
11 checkurl('dev.iworks.at');
16 $pool = new HttpRequestPool(
17 new HttpRequest('http://www.php.net/', HTTP_METH_HEAD),
18 new HttpRequest('http://pear.php.net/', HTTP_METH_HEAD),
19 new HttpRequest('http://pecl.php.net/', HTTP_METH_HEAD),
20 $post = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_METH_POST)
22 $post->addPostFields(array('a'=>1,'b'=>2)) ;
24 foreach ($pool as $req) {
25 echo $req->getUrl(), '=',
26 $req->getResponseCode(), ':',
27 $req->getResponseMessage()->getResponseCode(), "\n";
29 foreach ($pool as $req) {
31 $pool->attach(new HttpRequest('http://foo.bar'));
32 } catch (HttpRequestPoolException $x) {
36 foreach ($pool as $req) {
43 http://www.php.net/=200:200
44 http://pear.php.net/=200:200
45 http://pecl.php.net/=200:200
46 http://dev.iworks.at/.print_request.php=200:200