Hi,
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("http://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
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are
not
to copy, disclose, or distribute this e-mail or its contents to any other
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has
taken
every reasonable precaution to minimize this risk, but is not liable for any
damage
you may sustain as a result of any virus in this e-mail. You should carry out
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general