curl-users
Re: Exchange Server Consistently Returns 401
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 10 Dec 2010 22:18:57 +0100 (CET)
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 https://mail.example.com/EWS/Exchange.asmx -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.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-12-10