php: forward ntlm credentials to curl
I was able to get this to work by adding the following curl options:
curl_setopt($curly[$id], CURLOPT_HTTPAUTH, CURLAUTH_NTLM);
curl_setopt($curly[$id], CURLOPT_UNRESTRICTED_AUTH, true);
curl_setopt($curly[$id], CURLOPT_USERPWD, ":");
There is a bug open for this depending on the version of php: https://bugs.php.net/bug.php?id=62195