Is this the Windows version of curl from *curl.haxx.se <http://curl.haxx.se>? If so, some versions have a bug with digest authentication. See https://webcache.googleusercontent.com/search?q=cache:x1nUE35Dx7wJ:https://curl.haxx.se/mail/lib-2015-02/0166.html+&cd=3&hl=en&ct=clnk&gl=us <https://webcache.googleusercontent.com/search?q=cache:x1nUE35Dx7wJ:https://curl.haxx.se/mail/lib-2015-02/0166.html+&cd=3&hl=en&ct=clnk&gl=us>*
*Phil* On Wed, Apr 12, 2017 at 10:59 AM, Dave Cassel <[email protected]> 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]> > Reply-To: Nikunj Vekariya <[email protected]> > Date: Wednesday, April 12, 2017 at 7:33 AM > To: Dave Cassel <[email protected]>, MarkLogic Developer > Discussion <[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]> 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]> 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 > >
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
