cURL / Mailing Lists / curl-users / Single Mail

curl-users

Exchange Server Consistently Returns 401

From: James Armes <jamesiarmes_at_gmail.com>
Date: Sat, 4 Dec 2010 21:07:34 -0500

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".

James I. Armes
Web Applications Developer
http://www.jamesarmes.net
http://twitter.com/jamesiarmes

-------------------------------------------------------------------
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-05