增加luaApi_HttpGet和luaApi_HttpPost
This commit is contained in:
9
csgo2/Server.h
Normal file
9
csgo2/Server.h
Normal 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
|
||||
Reference in New Issue
Block a user