473,237 Members | 1,246 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,237 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 1970

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: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.