String path = "/content";
String query =
"<D:searchrequest xmlns:D =\"DAV:\">" +
"<D:basicsearch>" +
"<D:select>" +
"<D:prop>" +
"<D:getcontentlength/>" +
"</D:prop>" +
"</D:select>" +
"<D:from>" +
"<D:scope>" +
"<D:href>files</D:href>" +
"<D:depth>infinity</D:depth>" +
"</D:scope>" +
"</D:from>" +
"<D:where>" +
"<S:property-contains>" +
"<D:prop><u:Author/></D:prop>" +
"<D:literal>Laufey</D:literal>" +
"</S:property-contains>" +
"</D:where>" +
"</D:basicsearch>" +
"</D:searchrequest>";
SearchMethod method = new SearchMethod(path, query);The servlet gives the error:
http8090-Processor18, 10-Jan-2005 16:58:15, Administrator, SEARCH, 207 "Multi-Status", 2340 ms, /
http8090-Processor14, 10-Jan-2005 16:59:11, Administrator, SEARCH, 400 "Bad Request", 35 ms, /
Cheers Eirikur, Idega.
