From 98aac0429476f26c4d0b0db265e75e589ce43865 Mon Sep 17 00:00:00 2001 From: Josh Wieder Date: Tue, 6 Dec 2016 12:08:54 -0500 Subject: [PATCH] Update README.txt Examples use a class, Request, which does not exist. Replaced with 'RollingCurlRequest'. --- README.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.txt b/README.txt index 0c44a7e..45e0b2f 100644 --- a/README.txt +++ b/README.txt @@ -44,7 +44,7 @@ $rc = new RollingCurl("request_callback"); $rc->window_size = 20; foreach ($urls as $url) { // add each request to the RollingCurl object - $request = new Request($url); + $request = new RollingCurlRequest($url); $rc->add($request); } $rc->execute(); @@ -64,7 +64,7 @@ $rc->execute(); Set custom options for A SINGLE request: $rc = new RollingCurl("request_callback"); -$request = new Request($url); +$request = new RollingCurlRequest($url); $request->options = array(CURLOPT_HEADER => true, CURLOPT_NOBODY => true); $rc->add($request); $rc->execute(); @@ -94,7 +94,7 @@ class MyInfoCollector { function run($urls){ foreach ($urls as $url){ - $request = new Request($url); + $request = new RollingCurlRequest($url); $this->rc->add($request); } $this->rc->execute(); @@ -107,4 +107,4 @@ $collector->run(array( 'http://yahoo.com/' )); -$Id$ \ No newline at end of file +$Id$