Re: Using Digest Authentication
Date: Mon, 13 Aug 2007 09:18:52 +0200 (CEST)
On Mon, 13 Aug 2007, Chris Brown wrote:
> I am successfully using libcurl with basic authentication but also need to
> implement digest. Using curl_easy_setopt I have set CURLOPT_HTTPAUTH with
> CURLAUTH_DIGEST and also set CURLOPT_USERPWD. When I make a request to my
> server I get a '100 Continue' response followed by a '401 Unauthorized'
> which includes the WWW-Authenticate header with the nonce etc. If my
> understanding is correct this should be what is happening for digest
> authentication but I am unclear how to proceed from this point.
Ehm, yes that's exactly how you do it!
> I imagined that libcurl would automatically respond with the appropriate
> authentication based on the nonce etc provided by the server but this
> doesn't appear to be happening. Am I missing something? Is there some
> further steps I need to take once I receive this response from the server?
Does enabling VERBOSE provide any further details that might offer a clue to
why this happens?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-08-13