Great to have a work-around! I only needed to add a question mark between $proxy and $uri, but otherwise it seems to work..
Thnx! Geert -----Oorspronkelijk bericht----- Van: [email protected] [mailto:[email protected]] Namens James Fuller Verzonden: donderdag 22 september 2011 13:14 Aan: General MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] Will http-get support proxies in ML 5.0 ? in the meantime you can do something like this; declare function local:http-get-proxy($proxy, $uri){ let $host := fn:tokenize($uri,'/')[3] let $proxyuri := fn:concat($proxy,$uri) return xdmp:http-get($proxyuri, <options xmlns="xdmp:http"> <headers> <Host>{$host}</Host> </headers></options> ) }; local:http-get-proxy('http://some.proxy.com:8080','http://www.google.com') works with all proxy setups I tested. gl, Jim Fuller On Thu, Sep 22, 2011 at 10:43 AM, Geert Josten <[email protected]> wrote: > I wouldn't mind it being a general configuration option at host level either, > by the way. That should work for most cases I guess.. > > Kind regards, > Geert > > -----Oorspronkelijk bericht----- > Van: [email protected] > [mailto:[email protected]] Namens Jakob Fix > Verzonden: donderdag 22 september 2011 10:32 > Aan: General MarkLogic Developer Discussion > Onderwerp: Re: [MarkLogic Dev General] Will http-get support proxies in ML > 5.0 ? > > Hear hear! +1 > > I had discussion with product management people at mluc this year > where I requested this feature, but haven't had any news since, so am > definitely interested also! > > Jakob. > > > > On Thu, Sep 22, 2011 at 09:34, Geert Josten <[email protected]> wrote: >> Hi, >> >> I am once more plagued by running MarkLogic Server behind a proxy and trying >> to use xdmp:http-get and related functions. Will MarkLogic Server 5.0 >> support proxy options (server, port, user, pass)? >> >> Kind regards, >> Geert >> >> _______________________________________________ >> 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 > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
