--- a/dav/propfind.c Sat Dec 01 14:49:34 2012 +0100 +++ b/dav/propfind.c Sat Dec 01 16:31:36 2012 +0100 @@ -42,12 +42,15 @@ struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Content-Type: text/xml"); + headers = curl_slist_append(headers, "Depth: 1"); curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headers); UcxBuffer *rqbuf = create_propfind_request_body(); UcxBuffer *rpbuf = ucx_buffer_new(NULL, 4096, UCX_BUFFER_AUTOEXTEND); //printf("request\n%s\n", body->space); + curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0); + curl_easy_setopt(handle, CURLOPT_UPLOAD, 1); curl_easy_setopt(handle, CURLOPT_READFUNCTION, ucx_buffer_read); curl_easy_setopt(handle, CURLOPT_READDATA, rqbuf); @@ -59,7 +62,7 @@ ucx_buffer_seek(rqbuf, 0, SEEK_SET); CURLcode res = curl_easy_perform(handle); if(res == CURLE_OK) { - //printf("response\n%s\n", rpbuf->space); + printf("response\n%s\n", rpbuf->space); char *url = NULL; curl_easy_getinfo(handle, CURLINFO_EFFECTIVE_URL, &url);