diff --git a/examples/05-proxy_checker.php b/examples/05-proxy_checker.php index adf0fe1..45ab259 100644 --- a/examples/05-proxy_checker.php +++ b/examples/05-proxy_checker.php @@ -1,20 +1,16 @@ 2, - 'timeout' => 3, -])); +$httpClient = new CurlHttpClient; -$scraper = new Scrapers\UsProxyScraper($httpClient); +$scraper = new Scrapers\MultiproxyScraper($httpClient); $proxyAppraiser = new ProxyAppraiser($httpClient, WHOAMI_URL); diff --git a/src/HttpClient/CurlHttpClient.php b/src/HttpClient/CurlHttpClient.php new file mode 100644 index 0000000..c4f4f51 --- /dev/null +++ b/src/HttpClient/CurlHttpClient.php @@ -0,0 +1,36 @@ +