libidav/methods.c

changeset 856
0f1349ffa719
parent 854
1c8401ece69e
equal deleted inserted replaced
855:6740836b7a1e 856:0f1349ffa719
1100 } else { 1100 } else {
1101 curl_easy_setopt(handle, CURLOPT_HTTPHEADER, NULL); 1101 curl_easy_setopt(handle, CURLOPT_HTTPHEADER, NULL);
1102 } 1102 }
1103 1103
1104 curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "MKCOL"); 1104 curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "MKCOL");
1105 curl_easy_setopt(handle, CURLOPT_PUT, 0L);
1106 curl_easy_setopt(handle, CURLOPT_UPLOAD, 0L); 1105 curl_easy_setopt(handle, CURLOPT_UPLOAD, 0L);
1107 1106
1108 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, dummy_write); 1107 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, dummy_write);
1109 curl_easy_setopt(handle, CURLOPT_WRITEDATA, NULL); 1108 curl_easy_setopt(handle, CURLOPT_WRITEDATA, NULL);
1110 1109
1138 if(copy) { 1137 if(copy) {
1139 curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "COPY"); 1138 curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "COPY");
1140 } else { 1139 } else {
1141 curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "MOVE"); 1140 curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "MOVE");
1142 } 1141 }
1143 curl_easy_setopt(handle, CURLOPT_PUT, 0L);
1144 curl_easy_setopt(handle, CURLOPT_UPLOAD, 0L); 1142 curl_easy_setopt(handle, CURLOPT_UPLOAD, 0L);
1145 1143
1146 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, dummy_write); 1144 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, dummy_write);
1147 curl_easy_setopt(handle, CURLOPT_WRITEDATA, NULL); 1145 curl_easy_setopt(handle, CURLOPT_WRITEDATA, NULL);
1148 1146

mercurial