1234567891011121314151617181920212223242526272829 |
- #ifndef CURLHTTP_H
- #define CURLHTTP_H
- #include <string>
- #include <vector>
- #include "curl/curl.h"
- class CurlHttp
- {
- public:
- CurlHttp();
- ~CurlHttp();
-
- static bool Get(const std::string& url, std::string& response);
-
- static bool Post(const std::string& url, const std::string& postData, std::string& response);
-
- static bool PostWithBody(const std::string& url, const std::vector<std::string>& vecHeader, const std::string& postData, std::string& response);
- };
- #endif
|