diff -r 7bb47ddc1b5e -r ff477f1f7765 libidav/davqlexec.c --- a/libidav/davqlexec.c Sun Oct 07 09:14:03 2018 +0200 +++ b/libidav/davqlexec.c Thu Oct 11 19:29:45 2018 +0200 @@ -602,6 +602,9 @@ //printf("rpbuf: %s %s\n%.*s\n\n", sr->resource->path, sr->resource->href, rpbuf->pos, rpbuf->space); if(ret == CURLE_OK && http_status == 207) { + // in case of an redirect we have to adjust resource->href + dav_set_effective_href(sn, root); + // propfind request successful, now parse the response char *url = "http://url/"; PropfindParser *parser = create_propfind_parser(rpbuf, url);