libidav/davqlexec.c

changeset 786
f9d6e4cbcb62
parent 775
e5909dff0dbf
equal deleted inserted replaced
785:645f7e802873 786:f9d6e4cbcb62
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

mercurial