Skip to content

Commit

Permalink
Use http digest access authenticationtion if basic authenticationtion…
Browse files Browse the repository at this point in the history
… is not available/allowed
  • Loading branch information
dynasticorpheus committed Jul 3, 2016
1 parent 711a118 commit 94a4517
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions httpclient/HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ void HTTPClient::Cleanup()
void HTTPClient::SetGlobalOptions(void *curlobj)
{
CURL *curl=(CURL *)curlobj;
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC|CURLAUTH_DIGEST);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_curl_data);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_USERAGENT, m_sUserAgent.c_str());
Expand Down

0 comments on commit 94a4517

Please sign in to comment.