Sample code for WebDAV PROPFIND

后端 未结 1 1722
日久生厌
日久生厌 2021-01-28 04:24

Is there any site or some one can provide me a sample PROFIND request please.

I tried the PROFIND code sample from MSDN but getting 400 Bad request.

Unable to un

相关标签:
1条回答
  • 2021-01-28 04:46

    Ok I was missing the Depth Header and for that reason the webserver was returning Method Not allowed error.

    MSDN clearlystates that A PROPFIND with depth value of "infinity" is not supported in the public store that is accessible to MAPI clients such as Microsoft Outlook.

    And the Bad request 404 error was generated because I was not using proxy. So What I did I commented the line which was not using any proxy and added the Depth Header.

     // Request.Proxy = GlobalProxySelection.GetEmptyWebProxy();
    Request.Headers.Add("Depth", "1");
    
    0 讨论(0)
提交回复
热议问题