curl-library
Using Digest Authentication
Date: Mon, 13 Aug 2007 10:55:37 +1200
Hi
I was wondering if someone could clarify how Digest Authentication should be
implemented using libcurl (I am using version 7.16.3).
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.
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?
Thanks
Chris
Received on 2007-08-13