Welcome Guest, Not a member yet? Register   Sign In
CURLAUTH_NTLM is required

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!

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!

Theme © iAndrew 2016 - Forum software by © MyBB