Native cURL with CI Native cURL with CI codeigniter codeigniter

Native cURL with CI


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