In my case, the CURLRequest Class needs the curl option CRULAUTH_NTLM to access a Microsoft IIS web server. CI4 only allows CURLAUTH_DIGEST and CURLAUTH_BASIC.
It would be helpful if the setCURLOptions() function in the CodeIgniter4/system/HTTP/CURLRequest.php file could be supplemented as follows:
PHP Code:
elseif (! empty($config['auth'][2]) && strtolower($config['auth'][2]) === 'ntlm')
{
$curl_options[CURLOPT_HTTPAUTH] = CURLAUTH_NTLM;
}
Many thanks!