带CI的原生cURL

How can I use native cURL in server instead cURL library in codeigniter? I have cURL code which I made in native cURL in PHP, but I want it to implement with CI but CI doesn't recognize the action I want.

You can use something like Guzzel or Response

Both of which have pretty extensive documentation & support

Example from Guzzel

$client = new GuzzleHttp\Client();
$res = $client->get('https://api.github.com/user', ['auth' =>  ['user', 'pass']]);
echo $res->getStatusCode();
// "200"
echo $res->getHeader('content-type');
// 'application/json; charset=utf8'
echo $res->getBody();
// {"type":"User"...'

HI try this really great library build by philsturgeon long time ago it work great

https://github.com/philsturgeon/codeigniter-curl

read documentation carefully how this library will work