| 99 |
99 |
| 100 |
100 |
| 101 |
101 |
| 102 // create a version-tree request, which is almost the same as propfind |
102 // create a version-tree request, which is almost the same as propfind |
| 103 CxBuffer *rqbuf = create_propfind_request(sn, proplist, "version-tree", 1); |
103 CxBuffer *rqbuf = create_propfind_request(sn, proplist, "version-tree", 1); |
| 104 CxBuffer *rpbuf = cxBufferCreate(NULL, 4096, cxDefaultAllocator, CX_BUFFER_FREE_CONTENTS|CX_BUFFER_AUTO_EXTEND); |
104 CxBuffer *rpbuf = cxBufferCreate(cxDefaultAllocator, NULL, 4096, CX_BUFFER_FREE_CONTENTS|CX_BUFFER_AUTO_EXTEND); |
| 105 |
105 |
| 106 // do the request |
106 // do the request |
| 107 CURLcode ret = do_report_request(sn, rqbuf, rpbuf); |
107 CURLcode ret = do_report_request(sn, rqbuf, rpbuf); |
| 108 long status = 0; |
108 long status = 0; |
| 109 curl_easy_getinfo (sn->handle, CURLINFO_RESPONSE_CODE, &status); |
109 curl_easy_getinfo (sn->handle, CURLINFO_RESPONSE_CODE, &status); |