4.3 Depth "noroot" Request Header Extension

The following example shows a PROPFIND request from a WebDAV client and the response from the WebDAV server that contains the Depth "noroot" Request Header Extension.

PROPFIND request with Depth: 1

 PROPFIND /dav/ HTTP/1.1
 Depth: 1
 Content-Type: text/xml
 Host: localhost
 Accept: */*
 Content-Length:104
  
 <?xml version="1.0"?>
 <D:propfind xmlns:D="DAV:">
   <D:prop>
     <D:displayname/>
   </D:prop>
 </D:propfind>

Response:

 HTTP/1.1 207 Multi-Status
 Date: Fri, 17 Aug 2007 20:24:20 GMT
 Server: Microsoft-IIS/6.0
 X-Powered-By: ASP.NET
 Content-Type: text/xml
 Transfer-Encoding: chunked
  
 <?xml version="1.0"?>
 <a:multistatus xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
 xmlns:c="xml:" xmlns:a="DAV:">
   <a:response>
     <a:href>http://localhost/dav/</a:href>
     <a:propstat>
       <a:status>HTTP/1.1 200 OK</a:status>
       <a:prop>
         <a:displayname>dav</a:displayname>
       </a:prop>
     </a:propstat>
   </a:response>
   <a:response>
     <a:href>http://localhost/dav/pagerror.gif</a:href>
     <a:propstat>
       <a:status>HTTP/1.1 200 OK</a:status>
       <a:prop>
         <a:displayname>pagerror.gif</a:displayname>
       </a:prop>
     </a:propstat>
   </a:response>
   <a:response>
     <a:href>http://localhost/dav/script.asp</a:href>
     <a:propstat>
       <a:status>HTTP/1.1 200 OK</a:status>
       <a:prop>
         <a:displayname>script.asp</a:displayname>
       </a:prop>
     </a:propstat>
   </a:response>
   <a:response>
     <a:href>http://localhost/dav/textfile.txt</a:href>
     <a:propstat>
       <a:status>HTTP/1.1 200 OK</a:status>
       <a:prop>
         <a:displayname>textfile.txt</a:displayname>
       </a:prop>
     </a:propstat>
   </a:response>
 </a:multistatus>

PROPFIND request with Depth: 1,noroot

 PROPFIND /dav/ HTTP/1.1
 Depth: 1,noroot
 Content-Type: text/xml
 Host: localhost
 Accept: */*\r\n
 Content-Length:104
  
 <?xml version="1.0"?>
 <D:propfind xmlns:D="DAV:">
   <D:prop>
     <D:displayname/>
   </D:prop>
 </D:propfind>

Response:

 HTTP/1.1 207 Multi-Status
 Date: Fri, 17 Aug 2007 20:28:15 GMT
 Server: Microsoft-IIS/6.0
 X-Powered-By: ASP.NET
 Content-Type: text/xml
 Transfer-Encoding: chunked
  
 <?xml version="1.0"?>
 <a:multistatus xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
 xmlns:c="xml:" xmlns:a="DAV:">
   <a:response>
     <a:href>http://localhost/dav/pagerror.gif</a:href>
     <a:propstat>
       <a:status>HTTP/1.1 200 OK</a:status>
       <a:prop>
         <a:displayname>pagerror.gif</a:displayname>
       </a:prop>
     </a:propstat>
   </a:response>
   <a:response>
     <a:href>http://localhost/dav/script.asp</a:href>
     <a:propstat>
       <a:status>HTTP/1.1 200 OK</a:status>
       <a:prop>
         <a:displayname>script.asp</a:displayname>
       </a:prop>
     </a:propstat>
   </a:response>
   <a:response>
     <a:href>http://localhost/dav/textfile.txt</a:href>
     <a:propstat>
       <a:status>HTTP/1.1 200 OK</a:status>
       <a:prop>
         <a:displayname>textfile.txt</a:displayname>
       </a:prop>
     </a:propstat>
   </a:response>
 </a:multistatus>