|
@@ -122,6 +122,7 @@ public:
|
|
|
std::string& strText,
|
|
|
long& lHTTPStatusCode);
|
|
|
|
|
|
+private:
|
|
|
const bool DownloadFile(const std::string& strLocalFile,
|
|
|
const std::string& strURL,
|
|
|
long& lHTTPStatusCode);
|
|
@@ -129,7 +130,7 @@ public:
|
|
|
const bool UploadForm(const std::string& strURL,
|
|
|
const PostFormInfo& data,
|
|
|
long& lHTTPStatusCode);
|
|
|
-
|
|
|
+public:
|
|
|
inline void AddHeader(const std::string& strHeader)
|
|
|
{
|
|
|
m_pHeaderlist = curl_slist_append(m_pHeaderlist, strHeader.c_str());
|
|
@@ -153,6 +154,7 @@ public:
|
|
|
virtual const bool DownloadFileBlock(const char* url, const char* jsonReqStr, fileContentArray& content,
|
|
|
long &httpCode, unordered_map<string, string>& responseHeaders, long timeout);
|
|
|
|
|
|
+private:
|
|
|
// SSL certs
|
|
|
static const std::string& GetCertificateFile() { return s_strCertificationAuthorityFile; }
|
|
|
static void SetCertificateFile(const std::string& strPath) { s_strCertificationAuthorityFile = strPath; }
|