TimWillemstein2 (Customer) asked a question.

REST Collector using HTTP Request Header "Host"

Does anyone have experience with using the HTTP request header "Host" for their REST Collector?

 

When I configure it, it appears to ignore the Host header all together:

 

imageError in the backend being:

imageWhile if you use this "Host" header from curl or postman it works without any issue's. For example: [-H "Host: expected-host"]. works like a charm in CURL.

 

Is there some kind of limit on what request headers are accepted somehow form IGL side?


  • I've used this tool to test the API request - beeceptor.com

     

    Tested using v8 p9.

    Added two headers: Host and Host2

     

    imageI can see only host2 header

    imageHost header might be stripped, or GL sets the value automatically to the domain (and subdomain) name of the URL

    Expand Post
    • TimWillemstein2 (Customer)

      Hi Boris,

       

      Thanks for double checking.. I was a bit afraid this might indeed be the case. I'll see if I raise a case for it or use a workaround (like adjusting my hosts file for example).