A host header with the proxy is added to the request

Hi,

We are currently moving our OPDK 4.19.06 installation from one server farm to another.

We have installed the same OPDK version on the new servers, with the same configuration of the old servers.

However, we get the following weird behavior.

We transferred an API Proxy to the new environment, and a ServiceCallout policy is using a target connection with use.proxy=true

However, when we execute the API on the old server, a CURL request of this type is executed:

curl -i -H "Accept: application/json" -H "Content-Type: application/json" -x http://proxyservers.address.be:8080 -X GET https://api-...

The same proxy on the new install executes call:

curl -i -H "Accept: application/json" -H "Content-Type: application/json" -x http://proxyservers.address.be:8080 -X GET https://api-... -H "Host: proxyserver.address.be:8080"

----

So the difference is that in the new server, a host header with the proxy is added to the request. This makes the whole proxy malfunction.
Set-up of the proxy is identical on the new and old servers.
Config of all components (message processor, ...) is normally identical.

Does someone know where the Host header in the request is coming from? Do you know which config file could cause this?


Due to this issue, all communication over the forward proxy fails on the new environment.

Thanks
0 1 60
1 REPLY 1

Not applicable

Host header is nothing but the virtual host url you have used in request. This was earlier there as well and it goes to backend. This is a read only pproperty so you cannot modify.