629 |
629 |
630 util_set_url(sn, dav_resource_get_href(root)); |
630 util_set_url(sn, dav_resource_get_href(root)); |
631 CURLcode ret = do_propfind_request(sn, rqbuf, rpbuf); |
631 CURLcode ret = do_propfind_request(sn, rqbuf, rpbuf); |
632 long http_status = 0; |
632 long http_status = 0; |
633 curl_easy_getinfo(sn->handle, CURLINFO_RESPONSE_CODE, &http_status); |
633 curl_easy_getinfo(sn->handle, CURLINFO_RESPONSE_CODE, &http_status); |
634 //printf("rpbuf: %s %s\n%.*s\n\n", sr->resource->path, sr->resource->href, rpbuf->pos, rpbuf->space); |
634 //printf("rpbuf: %s\n%.*s\n\n", root->href, (int)rpbuf->size, rpbuf->space); |
|
635 //fflush(stdout); |
635 |
636 |
636 if(ret == CURLE_OK && http_status == 207) { |
637 if(ret == CURLE_OK && http_status == 207) { |
637 // in case of an redirect we have to adjust resource->href |
638 // in case of an redirect we have to adjust resource->href |
638 dav_set_effective_href(sn, root); |
639 dav_set_effective_href(sn, root); |
639 |
640 |