mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 17:29:06 +00:00
Changed: Useless to put a space after method name (if needed, we'll add ourself later)
This commit is contained in:
parent
d4cb7e9489
commit
86c438b010
2 changed files with 9 additions and 9 deletions
|
@ -189,7 +189,7 @@ bool CCurlHttpClient::sendRequest(const std::string& methodWB, const std::string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set POST params
|
// Set POST params
|
||||||
if ((methodWB == "POST ") && (!postParams.empty()))
|
if ((methodWB == "POST") && (!postParams.empty()))
|
||||||
{
|
{
|
||||||
curl_easy_setopt(_Curl, CURLOPT_POSTFIELDS, postParams.c_str());
|
curl_easy_setopt(_Curl, CURLOPT_POSTFIELDS, postParams.c_str());
|
||||||
}
|
}
|
||||||
|
@ -235,25 +235,25 @@ void CCurlHttpClient::pushReceivedData(uint8 *buffer, uint size)
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
bool CCurlHttpClient::sendGet(const string &url, const string& params, bool verbose)
|
bool CCurlHttpClient::sendGet(const string &url, const string& params, bool verbose)
|
||||||
{
|
{
|
||||||
return sendRequest("GET ", url + (params.empty() ? "" : ("?" + params)), string(), string(), string(), verbose);
|
return sendRequest("GET", url + (params.empty() ? "" : ("?" + params)), string(), string(), string(), verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
bool CCurlHttpClient::sendGetWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose)
|
bool CCurlHttpClient::sendGetWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose)
|
||||||
{
|
{
|
||||||
return sendRequest("GET ", url + (params.empty() ? "" : ("?" + params)), name, value, string(), verbose);
|
return sendRequest("GET", url + (params.empty() ? "" : ("?" + params)), name, value, string(), verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
bool CCurlHttpClient::sendPost(const string &url, const string& params, bool verbose)
|
bool CCurlHttpClient::sendPost(const string &url, const string& params, bool verbose)
|
||||||
{
|
{
|
||||||
return sendRequest("POST ", url, string(), string(), params, verbose);
|
return sendRequest("POST", url, string(), string(), params, verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
bool CCurlHttpClient::sendPostWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose)
|
bool CCurlHttpClient::sendPostWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose)
|
||||||
{
|
{
|
||||||
return sendRequest("POST ", url, name, value, params, verbose);
|
return sendRequest("POST", url, name, value, params, verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
|
@ -125,25 +125,25 @@ bool CHttpClient::sendRequest(const std::string& methodWB, const std::string &ur
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
bool CHttpClient::sendGet(const string &url, const string& params, bool verbose)
|
bool CHttpClient::sendGet(const string &url, const string& params, bool verbose)
|
||||||
{
|
{
|
||||||
return sendRequest("GET ", url + (params.empty() ? "" : ("?" + params)), string(), string(), string(), verbose);
|
return sendRequest("GET", url + (params.empty() ? "" : ("?" + params)), string(), string(), string(), verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
bool CHttpClient::sendGetWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose)
|
bool CHttpClient::sendGetWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose)
|
||||||
{
|
{
|
||||||
return sendRequest("GET ", url + (params.empty() ? "" : ("?" + params)), name, value, string(), verbose);
|
return sendRequest("GET", url + (params.empty() ? "" : ("?" + params)), name, value, string(), verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
bool CHttpClient::sendPost(const string &url, const string& params, bool verbose)
|
bool CHttpClient::sendPost(const string &url, const string& params, bool verbose)
|
||||||
{
|
{
|
||||||
return sendRequest("POST ", url, string(), string(), params, verbose);
|
return sendRequest("POST", url, string(), string(), params, verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
bool CHttpClient::sendPostWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose)
|
bool CHttpClient::sendPostWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose)
|
||||||
{
|
{
|
||||||
return sendRequest("POST ", url, name, value, params, verbose);
|
return sendRequest("POST", url, name, value, params, verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
Loading…
Reference in a new issue