We are trying to connect to Apache server from MarkLogic using digest authentication. However, we are getting 401 unauthorized error while trying to connect. Below is the MarkLogic API we are using:
xdmp:http-get("htp://localhost:port/a/b/c",
<options xmlns="xdmp:http">
<authentication method="digest">
<username>abc</username>
<password>abc123</password>
</authentication>
</options>)
And the response we are getting is below. Could you tell me what could be the issue here?
<response>
<code>401</code>
<message>Unauthorized</message>
<headers>
<server>Apache-Coyote/1.1</server>
<www-authenticate>Digest realm="ABCRealm", qop="auth", nonce="MTM3ODg4ODk3MjY5NTplMGFiYWI1YmZiNmM4YzU0OWJmMWM2ZWU5ZTYwODcxOQ=="</www-authenticate>
<content-type>text/html;charset=utf-8</content-type>
<content-length>1041</content-length>
<date>Wed, 11 Sep 2013 08:37:52 IST</date>
<cache-control>proxy-revalidate</cache-control>
<connection>close</connection>
</headers>
</response>
HTTP Status 401 - Nonce should have yielded two tokens but was
Regards, Vijay
Module digest_module mod_digest.ocommented-out in your config file? - s3-4v