12345678910111213141516171819202122232425262728293031 |
- #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 Get(const std::string& url, const std::vector<std::string>& vecHeader, std::string& response);
-
- static bool Post(const std::string& url, const std::string& postData, std::string& response);
-
- static bool Post(const std::string& url, const std::vector<std::string>& vecHeader, const std::string& postData, std::string& response);
- };
- #endif
|