HttpWebRequest Request;
WebResponse Response;
strFolderURI = "http://exch1/exchange/PFA
//strFolderURI = "http://exch1/public/Test%
try
{
string strQuery = "<?xml version='1.0' ?>"
+ "<f:propfind xmlns:f='DAV:'>"
+ "<f:prop xmlns:m='http://schemas.mi
+ "<m:descriptor/>"
+ "</f:prop>"
+ "</f:propfind>";
// Create the HttpWebRequest object.
Request = (HttpWebRequest)HttpWebReq
// Add the network mCredentials to the request.
Request.Credentials = mCredentials;
Request.PreAuthenticate = true;
// Specify the method.
Request.Method = "PROPFIND";
// Encode the body using UTF-8.
byte[] bytes = Encoding.UTF8.GetBytes(str
// Set the content header length. This must be
// done before writing data to the request stream.
//request.ContentLength = bytes.Length;
// Get a reference to the request stream.
Stream RequestStream = Request.GetRequestStream()
// Write the SQL query to the request stream.
RequestStream.Write(bytes,
// Close the Stream object to release the connection
// for further use.
RequestStream.Close();
// Set the content type header.
Request.ContentType = CONTENT_TYPE_XML;
Response = (HttpWebResponse)Request.G
Stream ResponseStream = Response.GetResponseStream
Main Topics
Browse All Topics





by: darkstar3dPosted on 2007-08-09 at 05:11:29ID: 19661396
Can you show the code you are using (relevant parts)