Hi
Using UTM 9.315-2.
I'm trying to proxy a request from our a product we are using (MarkLogic 8) using the following syntax
xquery version "1.0-ml";
declare function local:http-get-proxy($proxy as xs:string, $uri as xs:string) {
let $host := tokenize($uri,'/')[3]
let $proxyuri := resolve-uri(substring-after($uri, $host), $proxy)
return
xdmp:http-get($proxyuri,
{$host}
)
};
local:http-get-proxy("myproxy.home.co.uk:8080", "http:/.../www.kosch.co.uk")
In the returned response I get "Received invalid request from Client"
Digging into the UTM logs I see this message message="request misses host part"
If I then change install Fiddler and ask the product MarkLogic to route through fiddler first and then get fiddler to forward the request onto the UTM the request works fine.
I can see from fiddler debug that host: www.kosch.co.uk is making it across when I use fiddler.
I've tried using another freeware proxy server for comparison and it works fine so it seems to be something particular about the UTM that's stopping it.
Anyone have any suggestions on where to start looking as I havent heard back from support about this
This thread was automatically locked due to age.