curl-library
Re: Customizing 401 handling for http-digest authentication
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Oct 2014 15:10:54 +0100 (CET)
Date: Thu, 30 Oct 2014 15:10:54 +0100 (CET)
On Wed, 29 Oct 2014, Guru Prasad wrote:
> If I want to modify the 401 response handling for digest authentication, can
> I do this in the header callback function registered with libcurl (with
> CURLOPT_HEADERFUNCTION option)?
Sure. Just don't use libcurl's built-in auth support and build your own
instead.
> Can I use CURLOPT_HTTPHEADER option for this with curl_slist? In this case,
> do I have to take care of all the headers or can I add only partial headers
> which are specific to GBA and rest of the headers will be provided by
> libcurl as part of the 401 response handling.
No can do. With CURLOPT_HTTPHEADER you add, replace or remove full headers
only.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-10-30