6 (5 > (int) PHP_VERSION) and die('skip PHP5 is required for Http classes');
12 'http://pear.php.net',
15 $pool = new HttpRequestPool;
16 foreach ($urls as $url) {
17 $pool->attach($reqs[] = new HttpRequest($url, HTTP_HEAD));
20 foreach ($reqs as $req) {
21 echo $req->getResponseInfo('effective_url'), '=',
22 $req->getResponseCode(), ':',
23 $req->getResponseMessage()->getResponseCode(), "\n";
32 Content-type: text/html
35 http://www.php.net/=200:200
36 http://pear.php.net/=200:200
37 http://pecl.php.net/=200:200