This package a fork of https://github.com/philsturgeon/codeigniter-curl with the addition for a curl_multi support, check the last function of the model Phil has stopped support for this library and I do not promise any support, use at your own risk
CodeIgniter-cURL is a CodeIgniter library which makes it easy to do simple cURL requests and makes more complicated cURL requests easier too.
Simply, call $this->curl->multiRequest($requests,$options) from your controller.
$requests = array(
'url' => URL_OF_THE_GET_REQUEST,
);
$requests = array(
'url' => URL_OF_THE_REQUEST,
'method_name_here' => "", //Replace the word method_name_here with put or delete or post
);
If you want to pass arguments, add an array of arguments to the method key
$requests = array(
'url' => URL_OF_THE_REQUEST,
'method_name_here' => array( //Replace the word method_name_here with put or delete or post
'arg1' => value1,
'arg2' => value2,
),
);
$options = array(
'CURLOPT_RETURNTRANSFER' => 1,
'CURLOPT_SSL_VERIFYPEER' => 0,
'CURLOPT_FAILONERROR' => 0,
);