Consider sending the curl output with -v Sam Mefford Senior Engineer MarkLogic Corporation [email protected]<mailto:[email protected]> Cell: +1 801 706 9731 www.marklogic.com<http://www.marklogic.com>
This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. On 4/12/2017 8:59 AM, Dave Cassel wrote: Could you send the output of your script? -- Dave Cassel, @dmcassel<https://twitter.com/dmcassel> Technical Community Manager MarkLogic Corporation<http://www.marklogic.com/> http://developer.marklogic.com/ From: Nikunj Vekariya <[email protected]<mailto:[email protected]>> Reply-To: Nikunj Vekariya <[email protected]<mailto:[email protected]>> Date: Wednesday, April 12, 2017 at 7:33 AM To: Dave Cassel <[email protected]<mailto:[email protected]>>, MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Subject: Re: [MarkLogic Dev General] MarkLogic unexpected REST authentication (digest) 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]<mailto:[email protected]>> wrote: Does it return a 401 and then try again and succeed? That's actually normal operation for a digest request. See Example with Explanation<https://en.wikipedia.org/wiki/Digest_access_authentication#Example_with_explanation> on the Digest access authentication wikipedia page. -- Dave Cassel, @dmcassel<https://twitter.com/dmcassel> Technical Community Manager MarkLogic Corporation<http://www.marklogic.com/> http://developer.marklogic.com/ From: <[email protected]<mailto:[email protected]>> on behalf of Nikunj Vekariya <[email protected]<mailto:[email protected]>> Reply-To: Nikunj Vekariya <[email protected]<mailto:[email protected]>>, MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Wednesday, April 12, 2017 at 7:24 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[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]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
