conn = curl_easy_init();
- /*struct CardDAVCURLPasser {
-
- CardDAV *Data;
- bool HeaderMode = TRUE;
-
- } CardDAVHeader, CardDAVFooter;
-
- CardDAVHeader.Data = this;
- CardDAVHeader.HeaderMode = TRUE;
-
- CardDAVFooter.Data = this;
- CardDAVFooter.HeaderMode = FALSE;*/
-
wxString Data1;
wxString Data2;
curl_easy_setopt(conn, CURLOPT_URL, (const char*)ServerAddressSSL.mb_str(wxConvUTF8));
curl_easy_setopt(conn, CURLOPT_CERTINFO, 1);
curl_easy_setopt(conn, CURLOPT_VERBOSE, 1L);
- //curl_easy_setopt(conn, CURLOPT_SSL_VERIFYPEER, FALSE);
- //curl_easy_setopt(conn, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_easy_setopt(conn, CURLOPT_ERRORBUFFER, curlerrbuffer);
curl_easy_setopt(conn, CURLOPT_WRITEFUNCTION, WritebackFunc);
curl_easy_setopt(conn, CURLOPT_WRITEDATA, &PageData);