diff --git a/include/transport/HTTPRequest.h b/include/transport/HTTPRequest.h index d1b780e86cce43a03f87768b5dfa6471f52458a1..5eea41519cd3be4c1e4222fc3f004c9fac741ff2 100644 --- a/include/transport/HTTPRequest.h +++ b/include/transport/HTTPRequest.h @@ -40,6 +40,14 @@ class HTTPRequest : public Thread { boost::signal onRequestFinished; + static void globalInit() { + curl_global_init(CURL_GLOBAL_ALL); + } + + static void globalCleanup() { + curl_global_cleanup(); + } + private: bool init(); bool GET(std::string url, std::string &output);