473,405 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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();

Jul 17 '05 #1
0 1974

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: doug | last post by:
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...
7
by: Steve Drake | last post by:
All, I am doing a WEBDAV request and I want to pass the users Credentials to the webdav server, eg some code like : Request.Credentials = CredentialCache.DefaultCredentials; This does not...
2
by: George Durzi | last post by:
We recently upgraded to Exchange2K3/W2K3 from Exchange2K/W2K, and some of my c# code that I used to access users' contacts using WebDAV has stopped working. I'm getting a 401 unauthorized error....
0
by: Brian Henry | last post by:
I want to pull my contact list (personal one) from the exchange server into a local text file. I know how to write stuff into a text file, just getting it from an exchange server is my problem....
3
by: maria.s | last post by:
Hi, I try to create a calender-item in the personal calendar folder from an ASP.NET application using XML-HTTP Request (WebDAV). System: Windows 2003 SP1, Exchange 2003 SP1 Configuration...
2
by: Brett Smith | last post by:
I know that this probably isn't the best place to post this but I already posted it in the exchange.devolopment group, and have not gotten any responces, so I thought that I would post it here. ...
0
by: arjen1984 | last post by:
I am now working on C# with WebDAV on Exchange now to get appointments. When I work local on the domain where the server is, i can get the appointments no problem. When I work outside of it, i get an...
7
by: Wiebe Tijsma | last post by:
Hi, I'm using C# + webDAV to create a draft message to be sent in a user's Drafts folder. I can create the message successfully, however when I open the message in outlook, it doesn't show...
1
by: arnaud | last post by:
Hello, My Work: I must take mails with WEBDAV in a exchange server and save these in file in a directory.These files must have the msg extension. Problem: I don't find how save the mails in...
0
by: teddy06 | last post by:
I have written code for read mails from exchange server. I have used webdav in my code. Its was working fine once upon a time. Currently configuration settings of client has been changed . so i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.