comparison 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
comparison
equal deleted inserted replaced
456:511efa5c84dd 457:997282a61ff8
208 const char* password) 208 const char* password)
209 { 209 {
210 std::string s = std::string(username) + ":" + std::string(password); 210 std::string s = std::string(username) + ":" + std::string(password);
211 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_USERPWD, s.c_str())); 211 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_USERPWD, s.c_str()));
212 } 212 }
213
214
215
216 void HttpClient::GlobalInitialize()
217 {
218 CheckCode(curl_global_init(CURL_GLOBAL_DEFAULT));
219 }
220
221 void HttpClient::GlobalFinalize()
222 {
223 curl_global_cleanup();
224 }
213 } 225 }