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(handle, rqbuf, rpbuf); |
320 int 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); |
325 resource = parse_propfind_response(sn, resource, rpbuf); |
325 resource = parse_propfind_response(sn, resource, rpbuf); |