comparison OrthancCppClient/HttpClient.cpp @ 468:456b9d2e9af4

rename methods for clarity
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2013 14:53:17 +0200
parents 997282a61ff8
children a6fe16a31615
comparison
equal deleted inserted replaced
467:322c1b497036 468:456b9d2e9af4
202 return false; 202 return false;
203 } 203 }
204 } 204 }
205 205
206 206
207 void HttpClient::SetPassword(const char* username, 207 void HttpClient::SetCredentials(const char* username,
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 213