CodeIgniter Forums
CURLAUTH_NTLM is required - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: CURLAUTH_NTLM is required (/showthread.php?tid=79322)



CURLAUTH_NTLM is required - RalfK - 05-28-2021

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!


RE: CURLAUTH_NTLM is required - MGatner - 05-28-2021

I'm not familiar with this option but if you have code that is compatible with the existing implementation that solves your problem, by all means please submit it as a Pull Request on GitHub!