mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fixed bug caused by const char* to const string& conversion, resulting in the request message not always getting sent properly.
13 lines
527 B
C
13 lines
527 B
C
#ifndef TIER2_CURLUTILS_H
|
|
#define TIER2_CURLUTILS_H
|
|
|
|
size_t CURLWriteStringCallback(char* contents, const size_t size, const size_t nmemb, void* userp);
|
|
|
|
CURL* CURLInitRequest(const char* remote, const char* request, string& outResponse, curl_slist*& slist);
|
|
CURLcode CURLSubmitRequest(CURL* curl, curl_slist*& slist);
|
|
CURLINFO CURLRetrieveInfo(CURL* curl);
|
|
|
|
bool CURLHandleError(CURL* curl, CURLcode res, string& outMessage);
|
|
void CURLFormatUrl(string& outUrl, const char* host, const char* api);
|
|
|
|
#endif // !TIER2_CURLUTILS_H
|