Use of WebDAV to access OWA (exchange 2003) mails with Basic authentication and SSL

Posted by Mayuresh on Stack Overflow See other posts from Stack Overflow or by Mayuresh
Published on 2010-04-10T21:17:08Z Indexed on 2010/04/10 21:23 UTC
Read the original article Hit count: 207

I have got a working C# code for accessing OWA mails using WebDAV against a FBA enabled exchange 2003 (http://support.microsoft.com/kb/891748/en-us/)

But my client's OWA (exchange 2003) has Basic authentication and SSL (i-e when I try to access the web mail link through browser I get a grey login box instead of a web page I can log into the mail box once I enter the correct details) But my same fails with a 401 error against this mailbox.

I got the simple request working for the Basic authentication using –

String usernamePassword = strUserName + ":" + strPassword;
WebReq.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(new ASCIIEncoding().GetBytes(usernamePassword)));

But the subsequent WebDAV SEARCH request fails with 404 (resource not found) error.

Can we use WebDAV against an exchange 2k3 with SSL and Basic authentication?

© Stack Overflow or respective owner

Related posts about webdav

Related posts about c#