增加luaApi_HttpGet和luaApi_HttpPost

This commit is contained in:
huoji
2023-10-09 16:41:40 +08:00
parent 9e579530c5
commit 0ab028ced9
35 changed files with 5603 additions and 10 deletions

9
csgo2/Server.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include "head.h"
#include "libcurl/libcurl.h"
namespace Server {
CURLcode HttpPost(const std::string& strUrl, std::string header,
std::string szJson, std::string& strResponse, int nTimeout);
CURLcode HttpGet(const std::string& strUrl, std::string& strResponse,
std::string header, int nTimeout);
} // namespace Server