curl-library
Re: Problem with DIGEST and multiple authorization headers
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 2 Aug 2017 15:12:30 +0200 (CEST)
Date: Wed, 2 Aug 2017 15:12:30 +0200 (CEST)
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.htmlReceived on 2017-08-02