curl-library
RE: Using Digest Authentication
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 13 Aug 2007 23:12:28 +0200 (CEST)
Date: Mon, 13 Aug 2007 23:12:28 +0200 (CEST)
On Tue, 14 Aug 2007, Chris Brown wrote:
> Yes but the version of Curl is displayed as 7.9.5 which appears is before
> '--digest' was added as I get an option unknown error. I've explicitly
> checked the version of libcurl and its 7.16.3. I'm not sure why I've got
> different versions but I will download the latest version of curl and test
> again from the command line.
Right, can this be a reason to the failure? Are you perhaps accidentally using
an older, bad version?
> curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
Can you check the return code this returns and verify that it returns
CURLE_OK?
Also try calling curl_version() and display what version it is.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-08-13