Hi Dave,
Yes it is 401 error.I tried running the same script multiple times, but still
throwing same error.
Best,Nikunj
On Wednesday, 12 April 2017 4:59 PM, Dave Cassel
<[email protected]> wrote:
Does it return a 401 and then try again and succeed? That's actually normal
operation for a digest request. SeeExample with Explanation on the Digest
access authentication wikipedia page.
-- Dave Cassel, @dmcassel
Technical Community ManagerMarkLogic Corporation
http://developer.marklogic.com/
From: <[email protected]> on behalf of Nikunj Vekariya
<[email protected]>
Reply-To: Nikunj Vekariya <[email protected]>, MarkLogic Developer
Discussion <[email protected]>
Date: Wednesday, April 12, 2017 at 7:24 AM
To: "[email protected]" <[email protected]>
Subject: [MarkLogic Dev General] MarkLogic unexpected REST authentication
(digest)
I am using MarkLogic 8.0-5.4 version. I created an REST instance @port 8100.
The default http configuration for authentication is digest and default user is
nobody.When I pass the following curl command it throws 401 unauthorized
error.curl --anyauth --user admin:admin -X PUT -d "<input/>" -H "Content-type:
application/xml"
http://localhost:8100/v1/documents?uri=/shakespeare/plays/a_and_c.xml
Even if I replace --anyauth with --digest it throws the same error. Also if I
change the default user to admin and keep authentication to digest in admin,
and try to run the same curl command it throws the same error.Basically if I
keep authentication to digest, it throws 401 unauthorized error message. I want
to use digest in my application. How shall I proceed to it?
Best,Nikunj Vekariya
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general