Hi Mike, The server is set to accept both (digestbasic). And the Authorization header contains a digest string. Perhaps this trick only works with basic Authorization headers? Does anyone happen to know?
Kind regards, Geert -----Oorspronkelijk bericht----- Van: [email protected] [mailto:[email protected]] Namens Michael Blakeley Verzonden: donderdag 13 oktober 2011 0:35 Aan: General MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] Calling MarkLogic Server locally with http-get Maybe the server you are trying to talk to will only accept digest auth, not basic? -- Mike On 12 Oct 2011, at 14:54 , Geert Josten wrote: > Hi, > > I was pretty sure this trick used to work, but now I am getting Unauthorized > returned: > > xdmp:http-get("http://localhost:8000", > <options xmlns="xdmp:http"> > <headers> > > <authorization>{xdmp:get-request-header("authorization")}</authorization> > </headers> > </options> > ) > > I try to reuse the authorization of the port behind which this code runs, for > the ML app server behind port 8000. Actually, to test this I am calling the > same port. No luck. > > Should this in principle work? > > Kind regards, > Geert > > G.P.H. (Geert) Josten > Senior Consultant > > Daidalos BV > Hoekeindsehof 1-4 > 2665 JZ Bleiswijk > > T +31 (0)10 850 1200 > F +31 (0)10 850 1199 > > [email protected] > www.daidalos.nl > > KvK 27164984 > > De informatie - verzonden in of met dit e-mailbericht - is afkomstig van > Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit > bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit > bericht kunnen geen rechten worden ontleend. > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
