libidav/davqlexec.c

changeset 205
bf756f6c3581
parent 185
cd42cccee550
child 235
0468df02e18f
equal deleted inserted replaced
204:4f0207044837 205:bf756f6c3581
472 stack = ucx_list_remove(stack, stack); // remove first element 472 stack = ucx_list_remove(stack, stack); // remove first element
473 DavResource *root = sr->resource; 473 DavResource *root = sr->resource;
474 474
475 util_set_url(sn, dav_resource_get_href(sr->resource)); 475 util_set_url(sn, dav_resource_get_href(sr->resource));
476 CURLcode ret = do_propfind_request(sn->handle, rqbuf, rpbuf); 476 CURLcode ret = do_propfind_request(sn->handle, rqbuf, rpbuf);
477 int http_status = 0; 477 long http_status = 0;
478 curl_easy_getinfo (sn->handle, CURLINFO_RESPONSE_CODE, &http_status); 478 curl_easy_getinfo(sn->handle, CURLINFO_RESPONSE_CODE, &http_status);
479 //printf("rpbuf: %s %s\n%.*s\n\n", sr->resource->path, sr->resource->href, rpbuf->pos, rpbuf->space); 479 //printf("rpbuf: %s %s\n%.*s\n\n", sr->resource->path, sr->resource->href, rpbuf->pos, rpbuf->space);
480 480
481 if(ret == CURLE_OK && http_status == 207) { 481 if(ret == CURLE_OK && http_status == 207) {
482 // propfind request successful, now parse the response 482 // propfind request successful, now parse the response
483 char *url = "http://url/"; 483 char *url = "http://url/";

mercurial