From a10e8c28cd14f67ee005d65d3266c102d0d88a34 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Sun, 17 Apr 2016 19:21:45 +0000 Subject: [PATCH] let's use post --- .../application/LoginServer/src/shared/ClientConnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp index 901880ac..c8a94422 100755 --- a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp +++ b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp @@ -210,7 +210,8 @@ void ClientConnection::validateClient(const std::string & id, const std::string std::string password(curl_easy_escape(curl, key.c_str(), 0)); std::string ip(curl_easy_escape(curl, getRemoteAddress().c_str(), 0)); - curl_easy_setopt(curl, CURLOPT_URL, (authURL + "?user_name=" + username + "&user_password=" + password + "&user_ip=" + ip)); + curl_easy_setopt(curl, CURLOPT_URL, authURL); + curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "user_name=" + username + "&user_password=" + password + "&user_ip=" + ip); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);