Mercurial > hg > orthanc
comparison OrthancCppClient/HttpClient.cpp @ 144:aa6c8a942952
http client password
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Oct 2012 14:39:38 +0200 |
parents | 77aec9be0a51 |
children | e3a40c7846b8 |
comparison
equal
deleted
inserted
replaced
143:f1aeec53795b | 144:aa6c8a942952 |
---|---|
195 else | 195 else |
196 { | 196 { |
197 return false; | 197 return false; |
198 } | 198 } |
199 } | 199 } |
200 | |
201 | |
202 void HttpClient::SetPassword(const char* username, | |
203 const char* password) | |
204 { | |
205 std::string s = std::string(username) + ":" + std::string(password); | |
206 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_USERPWD, s.c_str())); | |
207 } | |
200 } | 208 } |