Sample Code for WebDAV PROPFIND

Is there any site, or can someone provide me with a sample PROFIND request, please.

I tried the PROFIND sample code from MSDN, but received 400 Bad requests.

It is impossible to understand why this is happening.

Earlier a question was sent in Receiving 400 Bad Request from WebDav Server

Any suggestions would be very helpful.

Edit

@Julian,

Update the request body as follows:

 strBody = "<?xml version='1.0' encoding='utf-8'?>"
                 + "<propfind xmlns='DAV:'>"
                 + "<allprop/>"
                + "</propfind>";

as described in RFC 4918, section 9.1

But I still get the 400 Bad request error. M I skip headlines. Please imagine that I am setting the following header information:

 System.Net.HttpWebRequest Request;
 Request.Credentials = MyCredentialCache;
 Request.Method = "PROPFIND";

 bytes = Encoding.UTF8.GetBytes((string)strBody);
 Request.ContentType = "text/xml";

Do I need to install or specify something additional. The full code is in my Previosu Question.

Thank,

Subhen

0
1

, , - " ".

MSDN , PROPFIND "" , MAPI, Microsoft Outlook.

Bad request 404, . , , , -, .

 // Request.Proxy = GlobalProxySelection.GetEmptyWebProxy();
Request.Headers.Add("Depth", "1");
+4

All Articles