I am trying to create a simple web API controller to act as a WebDAV server, since I want it to allow directories and read file access, and also integrate with the current authentication system that we have in our system.
I managed to get a list of directories and files that work when using the WebDAV client (DAVExplorer), however, mapping a network drive in Windows Explorer simply does not play the ball.
Until I figured out why this does not work, one of the possibilities is that when the WebDAV server returns the results of the PROPFIND request, it does this with the HTTP status code 207 Multi Status. This is not like the enum HttpStatusCodeused by the object HttpResponseMessage.
I tried to figure out what it actually turned HttpResponseMessageinto a response returned to the browser, thinking that I could implement my own version and deal with the status code myself, but I had no luck with that until now.
Has anyone received suggestions on how I can implement an API controller that returns a status code of 207?
source
share