2 title: HttpRequestPool in PECL::HTTP
8 I just checked in a first working version of HttpRequestPool into CVS.
9 It's curl_multi that's doing its job underneath and is used tp send several
13 'http://www.php.net/',
14 'http://pear.php.net/',
15 'http://pecl.php.net/'
18 $pool = new HttpRequestPool;
19 foreach ($urls as $url) {
20 $pool->attach(new HttpRequest($url, HTTP_METH_HEAD));
25 foreach ($pool as $r) {
26 $status = $r->getResponseCode();
27 printf("%-20s is %sn",
29 $status == 200 ? "ALIVE" : "NOT OK ($status)"
32 } catch (HttpException $ex) {