2.2.4 SEARCH Method

This method extension allows a WebDAV client to request search results from an external search provider. A WebDAV server SHOULD advertise support for the SEARCH method in the response to an OPTIONS request. The SEARCH method is simply a delivery mechanism for passing queries to external search providers.<4>

The following example shows the syntax for the SEARCH method, which conforms to the HTTP syntax as defined in [RFC2068].

 SEARCH /[resource] HTTP/1.1
 Host: www.example.com
 Content-type: text/xml; charset="utf-8"
 Content-Length: nnn
 <?xml version="1.0" encoding="utf-8" ?>
 <D:searchrequest xmlns:D = "DAV:">
     [implementation-specific content for a search provider]