Thanks Geert, xdmp:get-request-header("host") does the job, I can strip
off the port..On 26/03/2014 11:22, "Geert Josten" <[email protected]> wrote: >Hi Rob, > >Not quite sure what the thought behind that is, but you could either rely >on the host name on which the query is running, or use >xdmp:get-request-header("host") for this purpose. Note though that the >latter returns host and port in the style "host:port", for instance >"localhost:8000".. > >Cheers, >Geert > >> -----Oorspronkelijk bericht----- >> Van: [email protected] [mailto:general- >> [email protected]] Namens Whitby, Rob >> Verzonden: woensdag 26 maart 2014 11:59 >> Aan: MarkLogic Developer Discussion >> Onderwerp: [MarkLogic Dev General] get request host name? >> >> I can¹t seem to get a request¹s host name. Everything else is there >> protocol, port, path etc, but none of the "xdmp:get-request-" functions >> include the host name. What am I missing? >> >> Thanks >> Rob >> >> >> _______________________________________________ >> 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
