string ServerAddress = "";
string ServerUserPass = "";
+ string ServerData = "";
+ string ServerHeader = "";
// Setup the server address.
curl_easy_setopt(ConnectionHandle, CURLOPT_USERPWD, ServerUserPass.c_str());
curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
curl_easy_setopt(ConnectionHandle, CURLOPT_FAILONERROR, 1L);
-
+ curl_easy_setopt(ConnectionHandle, CURLOPT_WRITEFUNCTION, CalDAVOutput);
+ curl_easy_setopt(ConnectionHandle, CURLOPT_WRITEDATA, &ServerData);
+ curl_easy_setopt(ConnectionHandle, CURLOPT_WRITEHEADER, &ServerHeader);
+
// Connect to the CalDAV server.
ServerResult.Code = curl_easy_perform(ConnectionHandle);
-
+
// Process the result received from the server.
if (ServerResult.Code != CURLE_OK){