rolling-curl icon indicating copy to clipboard operation
rolling-curl copied to clipboard

Is it possible to get the data of each URL after the execution?

Open theunreal opened this issue 10 years ago • 1 comments

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..

theunreal avatar Oct 17 '15 11:10 theunreal

$pages = array(); $rollingCurl->setCallback(function(\RollingCurl\Request $request, \RollingCurl\RollingCurl $rollingCurl) use (&$pages) { $pages[] = $request->getResponseText(); })->execute(); print_r($pages); // pages content here

nikolaystrikhar avatar Oct 24 '15 12:10 nikolaystrikhar