This reverts commit 6280d9fb0184275843a8f4406c7293e41e65a639, reversing changes made to 3c9c8b8c6a2b2e7430ff09efdc2cc0c1996b16ca.
34 lines
466 B
C++
34 lines
466 B
C++
#ifndef UTILS_CURLCONNECTION_H
|
|
#define UTILS_CURLCONNECTION_H
|
|
|
|
/// \cond
|
|
// C headers
|
|
#include <curl/curl.h>
|
|
|
|
// C++ headers
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
// 3rd party headers
|
|
/// \endcond
|
|
|
|
namespace utils {
|
|
|
|
class CurlConnection
|
|
{
|
|
public:
|
|
CurlConnection();
|
|
|
|
std::string get(const std::string& url, const std::vector<std::string>& extraHttpHeaders);
|
|
|
|
|
|
private:
|
|
CURL* curl;
|
|
CURLcode res;
|
|
|
|
};
|
|
|
|
} // namespace utils
|
|
|
|
#endif // UTILS_CURLCONNECTION_H
|