-
-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
Example Code:
$urls = array('http://google.com', 'https://twitter.com');
$mc = JMathai\PhpMultiCurl\MultiCurl::getInstance();
$calls = array();
foreach($urls as $url) {
$handle = curl_init($url);
curl_setopt( $handle, CURLOPT_NOBODY, true );
curl_setopt( $handle, CURLOPT_HEADER, false );
$calls[] = $mc->addCurl($handle);
}
$r = array();
foreach($calls as $email => $call) {
$r[] = $call->code;
}
var_dump($r);Hi,
the result of first url will always return null, why? did I missing anything or is it a bug?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels