checkurl('www.php.net');
checkurl('pear.php.net');
checkurl('pecl.php.net');
+checkurl('dev.iworks.at');
?>
--FILE--
<?php
$pool = new HttpRequestPool(
new HttpRequest('http://www.php.net/', HTTP_HEAD),
new HttpRequest('http://pear.php.net/', HTTP_HEAD),
- new HttpRequest('http://pecl.php.net/', HTTP_HEAD)
+ new HttpRequest('http://pecl.php.net/', HTTP_HEAD),
+ $post = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_POST)
);
+$post->addPostFields(array('a'=>1,'b'=>2)) ;
$pool->send();
foreach ($pool as $req) {
echo $req->getUrl(), '=',
http://www.php.net/=200:200
http://pear.php.net/=200:200
http://pecl.php.net/=200:200
+http://dev.iworks.at/.print_request.php=200:200
Done