example: plattformneutral gegen target link; linux delete via POST; build.sh nutzt vcpkg-Toolchain, baut lib+example; tests laufen

This commit is contained in:
2025-08-28 16:15:47 +02:00
parent df74c8a1af
commit 063800df12
3 changed files with 22 additions and 34 deletions

View File

@ -585,7 +585,7 @@ bool HttpClient::delete_req(const std::string& url, const std::string& data, std
}
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
// PrivateBin API erwartet POST für delete
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &response);