Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

curl multi exec get index

/*when using curl multi exec you may need to pass some data about the request
and retrieve that data whenever the request is done processing you can
use curl's private data feature like so to achieve this:*/
curl_setopt($curl_handle, CURLOPT_PRIVATE, $someIndex);

//.... then later
$info = curl_multi_info_read($handle);//read the info
$someIndex = curl_getinfo($info['handle'], CURLINFO_PRIVATE);
 
PREVIOUS NEXT
Tagged: #curl #multi #exec #index
ADD COMMENT
Topic
Name
5+6 =