7 checkcls('HttpRequestPool');
8 checkurl('www.php.net');
9 checkurl('dev.iworks.at');
14 $post = new HttpRequest('http://dev.iworks.at/ext-http/.print_request.php', HTTP_METH_POST);
15 $post->addPostFields(array('a'=>1,'b'=>2)) ;
17 $pool = new HttpRequestPool(
18 new HttpRequest('http://www.php.net/', HTTP_METH_HEAD),
24 foreach ($pool as $req) {
25 echo $req->getUrl(), '=',
26 $req->getResponseCode(), ':',
27 $req->getResponseMessage()->getResponseCode(), "\n";
30 foreach ($pool as $req) {
32 $pool->attach(new HttpRequest('http://foo.bar'));
33 } catch (HttpRequestPoolException $x) {
38 foreach ($pool as $req) {
47 http://www.php.net/=200:200
48 http://dev.iworks.at/ext-http/.print_request.php=200:200