#ifndef NETWORK_HPP #define NETWORK_HPP #ifdef _WIN32 #include #include using string = std::wstring; #else #include #include using string = std::string; #endif class Curl { public: Curl(); ~Curl(); std::string get( const string &url ); std::string post( const std::string &url, const std::string &data ); void addHeader( const std::string &header ); void clearHeader(); private: #ifdef _WIN32 HINTERNET connect = nullptr; #else CURL *curl_handle; struct curl_slist *chunk = NULL; #endif }; #endif