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

Reply via email to