libidav/davqlexec.c

branch
v1.2
changeset 481
ff477f1f7765
parent 387
92f8a2a243fc
child 594
23608c2e1de9
equal deleted inserted replaced
480:7bb47ddc1b5e 481:ff477f1f7765
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