setUrl('https://httpbin.org/get'); for ($i = 1; $i <= 10; $i++) { $curl->get([ 'page' => $i, ]); // TODO: Do something with result $curl->response. }