I am working on a library to communicate with Microsoft Exchange using PHP. Everything works fine on my production servers, but I keep getting 401 Unauthorized on my development machine. I tried using curl from the command line and get the same results.
Using the following command "401" on my machine:
curl https://mail.example.com/EWS/Exchange.asmx -w %{http_code} --ntlm -u username:password
The exact same call returns “302” on my production machines, which I expect.
My development machine uses curl 7.19.7, and my production machine uses curl 7.18.0.
linux curl ntlm
James armes
source share