PHP Webdav/ Exchange question

This is a discussion on PHP Webdav/ Exchange question within the PHP Language forums, part of the PHP Programming Forums category; I have been working on a php application interfacing with exchange, my application works with PROPFIND but when I do ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2005
doug
 
Posts: n/a
Default PHP Webdav/ Exchange question

I have been working on a php application interfacing with exchange, my
application works with PROPFIND but when I do a search I get an error
400, can anyone point out to me why, I do a METHOD SEARCH, my code
is below:

My query is well formed and works, so my header request may be
incorrect?

HTTP_REQUEST_METHOD_SEARCH=SEARCH

$req = &new HTTP_Request($url);

if (is_string($username)) {
$req->setBasicAuth($username, @$password);
}
if ($method!=HTTP_REQUEST_METHOD_SEARCH)
{
$req->setMethod($method);
$req->addHeader("Depth", "1");
$req->addHeader("Translate", "f");
}
else
{
$req->setMethod($method);
// $req->addHeader("Depth", "1");
// $req->addHeader("Translate", "f");

}

$req->addHeader("Content-Type", "text/xml");
$req->addRawPostData($query);

$req->sendRequest();
if (PEAR::isError($req->sendRequest())) {
echo "ERROR:".$req->getMessage();
}
$responsecode=$req->getResponseCode();

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0