cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: Exchange Server Consistently Returns 401

From: Daniel Stenberg <daniel_at_haxx.se>
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.html
Received on 2010-12-10

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET