- remove example scripts, as those can be extracted from tutorial.txt with extract.php
[m6w6/ext-http] / docs / examples / Parallel_Requests.php
diff --git a/docs/examples/Parallel_Requests.php b/docs/examples/Parallel_Requests.php
deleted file mode 100644 (file)
index d9b05f0..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-try {
-       $p = new HttpRequestPool;
-       // if you want to set _any_ options of the HttpRequest object,
-       // you need to do so *prior attaching* to the request pool!
-       $p->attach(new HttpRequest('http://pear.php.net', HTTP_METH_HEAD));
-       $p->attach(new HttpRequest('http://pecl.php.net', HTTP_METH_HEAD));
-} catch (HttpException $e) {
-       print $e;
-       exit;
-}
-
-try {
-       $p->send();
-       // HttpRequestPool implements an iterator over attached HttpRequest objects
-       foreach ($p as $r) {
-               echo "Checking ", $r->getUrl(), " reported ", $r->getResponseCode(), "\n";
-       }
-} catch (HttpException $e) {
-       print $e;
-}
-?>