On Mon, 10 Jul 2017, Daniel Schwarz via curl-library wrote:

 /* set realm aware authentication */
 curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST_REALM );
 curl_easy_setopt(curl, CURLOPT_REALM, "RealmT1" );

Why do you need to set CURLAUTH_DIGEST_REALM as a type? Isn't it enough to use CURLAUTH_DIGEST with CURLOPT_REALM set?

What do you think about the approach?

I think it should work pretty well and also be fairly easy to implement, as it is basically just to ignore those incoming headers that don't have the matching realm.

--

 / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to