Random Project

Fixing the auth bug in this script

This script has a bug where it doesn’t do ntlm auth correctly. I was able to fix it by replacing the lines that set CURLOPT_USERNAME and CURLOPT_PASSWORD with:

$curl->setopt(CURLOPT_USERPWD,$username . ‘:’ . $password);