libidav/davqlexec.c

changeset 478
baa63fef5c5c
parent 475
52e4171d42ce
child 505
481802342fdf
equal deleted inserted replaced
477:9a406db6729b 478:baa63fef5c5c
600 long http_status = 0; 600 long http_status = 0;
601 curl_easy_getinfo(sn->handle, CURLINFO_RESPONSE_CODE, &http_status); 601 curl_easy_getinfo(sn->handle, CURLINFO_RESPONSE_CODE, &http_status);
602 //printf("rpbuf: %s %s\n%.*s\n\n", sr->resource->path, sr->resource->href, rpbuf->pos, rpbuf->space); 602 //printf("rpbuf: %s %s\n%.*s\n\n", sr->resource->path, sr->resource->href, rpbuf->pos, rpbuf->space);
603 603
604 if(ret == CURLE_OK && http_status == 207) { 604 if(ret == CURLE_OK && http_status == 207) {
605 // in case of an redirect we have to adjust resource->href
606 dav_set_effective_href(sn, root);
607
605 // propfind request successful, now parse the response 608 // propfind request successful, now parse the response
606 char *url = "http://url/"; 609 char *url = "http://url/";
607 PropfindParser *parser = create_propfind_parser(rpbuf, url); 610 PropfindParser *parser = create_propfind_parser(rpbuf, url);
608 // TODO: test if parser is null 611 // TODO: test if parser is null
609 ResponseTag response; 612 ResponseTag response;

mercurial