- example fixup
[m6w6/ext-http] / docs / examples / Parallel_Requests.php
index 474adafdeb6a2c774be8c090ee2d5c206a97acfb..d9b05f0fe8b9e09163585aeede0b0dbe9958598f 100644 (file)
@@ -3,8 +3,8 @@ 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_HEAD));
-       $p->attach(new HttpRequest('http://pecl.php.net', HTTP_HEAD));
+       $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;