This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

message="request misses host part"

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.
Parents
  • Can you run it through wireshark in addition to (or instead of) Fiddler?

    All requests should have a Host: header.

    Google for "marklogic missing host proxy" shows this is a problem others have experienced with other proxies, they have suggested solutions on how to make the request correctly.

Reply
  • Can you run it through wireshark in addition to (or instead of) Fiddler?

    All requests should have a Host: header.

    Google for "marklogic missing host proxy" shows this is a problem others have experienced with other proxies, they have suggested solutions on how to make the request correctly.

Children
No Data