Mercurial > hg > orthanc
diff OrthancCppClient/HttpClient.cpp @ 457:997282a61ff8
cleaner names
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Jul 2013 16:00:13 +0200 |
parents | 511efa5c84dd |
children | 456b9d2e9af4 |
line wrap: on
line diff
--- a/OrthancCppClient/HttpClient.cpp Thu Jul 04 15:53:46 2013 +0200 +++ b/OrthancCppClient/HttpClient.cpp Thu Jul 04 16:00:13 2013 +0200 @@ -210,4 +210,16 @@ std::string s = std::string(username) + ":" + std::string(password); CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_USERPWD, s.c_str())); } + + + + void HttpClient::GlobalInitialize() + { + CheckCode(curl_global_init(CURL_GLOBAL_DEFAULT)); + } + + void HttpClient::GlobalFinalize() + { + curl_global_cleanup(); + } }