try once more

This commit is contained in:
Lion Kortlepel
2021-01-13 21:57:13 +01:00
parent 2571cb1478
commit 4e1d2a7ddd
+3 -1
View File
@@ -21,14 +21,16 @@ public:
inline CURL* Get() {
return curl;
}
private:
CURL* curl;
};
static size_t WriteCallback(void* contents, size_t size, size_t nmemb, void* userp) {
((std::string*)userp)->append((char*)contents, size * nmemb);
std::string((char*)userp).append((char*)contents, size * nmemb);
return size * nmemb;
}
std::string HttpRequest(const std::string& IP, int port) {
CurlManager M;
std::string readBuffer;