From 0cf81a4421f9a4d267245a3041508b617a01d68d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 28 Dec 2017 01:02:16 +0100 Subject: Add curl get, add packages file --- include/curl.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/curl.hpp') diff --git a/include/curl.hpp b/include/curl.hpp index 49dfe12..7c0ddbe 100644 --- a/include/curl.hpp +++ b/include/curl.hpp @@ -2,13 +2,23 @@ #define SIBS_CURL_HPP #include "Result.hpp" +#include namespace sibs { + class HttpResult + { + public: + long httpCode; + bool success; + std::string str; + }; + class curl { public: - static Result downloadFile(const char *url, const char *filepath); + static sibs::Result downloadFile(const char *url, const char *filepath); + static HttpResult get(const char *url); }; } -- cgit v1.2.3