Your browser does not have JavaScript enabled. JavaScript is used to enhance both BitLeap’s website and our Customer Control Panel. You may not be able to use all the functions of our website properly with JavaScript disabled. Sorry for any inconvenience this may have caused.

Loading Data...


Exchange WebDAV Returning 401

During development we found that when we were accessing Exchange via WebDAV we kept getting 401 HTTP status codes for a few mailboxes. This was preventing us from doing any operation against the mailbox. So we started to troubleshoot the issue and we found that this problem was only showing up when the mailbox was created but was never logged into from OWA previously. After we logged in as the user from a web browser the problem went away and we were able to access the mailbox from WebDAV normally.

So we brought up our network sniffing tools to see just what was different between the PHP generated WebDAV request and the HTTP request. After comparing the request headers, we narrowed the difference and found that we were missing the Accept-Language and Accept-Charset headers that apparently Exchange requires.

Below is an example of the headers that we needed to add to the WebDAV request:

Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*


 

BitLeap Devblog

Welcome to the BitLeap developer blog! Some posts are longer than others, but they all seem to make use of links and code and stuff. Feel free to read, or not to read, as you so desire and prefer.