275 UcxBuffer *rpbuf = ucx_buffer_new(NULL, 4096, UCX_BUFFER_AUTOEXTEND); |
275 UcxBuffer *rpbuf = ucx_buffer_new(NULL, 4096, UCX_BUFFER_AUTOEXTEND); |
276 |
276 |
277 //fwrite(rqbuf->space, 1, rqbuf->size, stdout); |
277 //fwrite(rqbuf->space, 1, rqbuf->size, stdout); |
278 //printf("\n"); |
278 //printf("\n"); |
279 |
279 |
280 CURLcode ret = do_propfind_request(handle, rqbuf, rpbuf); |
280 CURLcode ret = do_propfind_request(sn, rqbuf, rpbuf); |
281 long status = 0; |
281 long status = 0; |
282 curl_easy_getinfo (handle, CURLINFO_RESPONSE_CODE, &status); |
282 curl_easy_getinfo (handle, CURLINFO_RESPONSE_CODE, &status); |
283 if(ret == CURLE_OK && status == 207) { |
283 if(ret == CURLE_OK && status == 207) { |
284 //printf("response\n%s\n", rpbuf->space); |
284 //printf("response\n%s\n", rpbuf->space); |
285 // TODO: use PropfindParser |
285 // TODO: use PropfindParser |
314 CURL *handle = sn->handle; |
314 CURL *handle = sn->handle; |
315 util_set_url(sn, dav_resource_get_href(root)); |
315 util_set_url(sn, dav_resource_get_href(root)); |
316 |
316 |
317 UcxBuffer *rpbuf = ucx_buffer_new(NULL, 4096, UCX_BUFFER_AUTOEXTEND); |
317 UcxBuffer *rpbuf = ucx_buffer_new(NULL, 4096, UCX_BUFFER_AUTOEXTEND); |
318 DavResource *resource = root; |
318 DavResource *resource = root; |
319 CURLcode ret = do_propfind_request(handle, rqbuf, rpbuf); |
319 CURLcode ret = do_propfind_request(sn, rqbuf, rpbuf); |
320 long status = 0; |
320 long status = 0; |
321 long error = 0; |
321 long error = 0; |
322 curl_easy_getinfo (handle, CURLINFO_RESPONSE_CODE, &status); |
322 curl_easy_getinfo (handle, CURLINFO_RESPONSE_CODE, &status); |
323 if(ret == CURLE_OK && status == 207) { |
323 if(ret == CURLE_OK && status == 207) { |
324 //printf("response\n%s\n", rpbuf->space); |
324 //printf("response\n%s\n", rpbuf->space); |