WebDav SEARCH question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have a HTTP_Request webdav query against exchange that just isnt
working  I have tried everything, the webdav query is correctly
formatted, my header or something must be incorrect,  I have used the
same query with the tool

and it works but with my code below it does not?  The headers appear to
be identical,  and my code below works with a PROPFIND Query fine, but
a SEARCH query consistently comes back with a result code of 400.

The PHP Code to generate my query is:

include "HTTP/Request.php";
$query='<?xml version="1.0"?>
<D:searchrequest xmlns:D="DAV:">
  SELECT "DAV:displayname", "DAV:contentclass"
  FROM "https://webmail.test.com/exchange /"
  WHERE "DAV:isfolder" = true


$req = &new HTTP_Request("https://webmail.test.com/exchange /");


$req->setBasicAuth($username, @$password);

$req->addHeader('User-Agent', 'Exchange Admin');
$req->addHeader("Content-Type", "text/xml");

echo $req->getResponseHeader();
echo $req->getResponseBody();

Re: WebDav SEARCH question

This turns out to be a PEAR PHP problem... There is a bug in

Site Timeline