cURL / Mailing Lists / curl-users / Single Mail


Re: Exchange Server Consistently Returns 401

From: Daniel Stenberg <>
Date: Fri, 10 Dec 2010 22:18:57 +0100 (CET)

On Sat, 4 Dec 2010, James Armes wrote:

> I'm trying to connect to a Microsoft Exchange server using curl in PHP. I
> keep getting a 401 Unauthorized so I tried it on the command line. When I
> run "curl -w %{http_code} --ntlm
> -u username:password" using curl 7.19 or 7.21, I get "401". With curl 7.18,
> I get the expected "302".

That seems to indicate a problem with NTLM authentication. I don't know what I
can offer further to help you debug and diagnose this. I'm not aware of any
NTLM problem or regression after 7.18.

List admin:
Received on 2010-12-10