rolling-curl
rolling-curl copied to clipboard
Is it possible to get the data of each URL after the execution?
Is it possible to get the data of each URL after the execution? I couldn't find any documentation to get the page content after the execution. It's impossible to save the data from the callback..
$pages = array(); $rollingCurl->setCallback(function(\RollingCurl\Request $request, \RollingCurl\RollingCurl $rollingCurl) use (&$pages) { $pages[] = $request->getResponseText(); })->execute(); print_r($pages); // pages content here