Digest authentication

Jul 17, 2015 at 5:18 AM
I have already authenticate successfully with Server in CURL:
std::string _usrpss = "user1:password1";
curl_easy_setopt(_MyCURL, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
curl_easy_setopt(_MyCURL, CURLOPT_USERPWD, _usrpss.c_str());
=> get data successful

I want to use C++ REST SDK authenticate this digest:
http_client_config config;
credentials creds( "user1", "password1" );
config.set_credentials( creds );
http_client client( U( "http://abc.com" ), config );
=> don't get data

Can you help me show why the second fail ?
Jul 20, 2015 at 5:21 PM
Hi binhducodeplex,

What platform are you running on? Our http_client doesn't support HTTP authentication schemes on non-Windows platform currently. I believe you can implement and add the correct header information yourself when you encounter and authorization challenge.

Steve
Jul 24, 2015 at 10:13 AM
Hi stevetgates,

I use linux platform. As you said it's impossible authenticate in this case.
Thanks for helping.

BinhDu
Jul 24, 2015 at 10:33 PM
Hi BinhDu,

I believe you can still perform this yourself, but correct it isn't currently automatically done by the library for you.

Steve