Troubleshooting
Problem
Trying to create Rest API on API Gateway that will route requests to the native service provider which expects incoming requests to have the HTTP header "Host" with a particular value.
Tried to set this outgoing HTTP header by setting the HTTP header "Host":"myvalue" in the client request headers to API Gateway, but API Gateway is not forwarding this header to the endpoint.
Tried to set Routing / Custom HTTP header policy with parameters: HTTP Header Key = Host, Header Value = "myvalue", but it neither works.
Similar behavior is present in policy Request Processing / Request Transformation with Transformation Configuration / Header Transformation.
Even tried building an IS service to be invoked in the request transformation policy to modify the Host header using pub.apigateway.ctxvar:setContextVariable, but this also has no effect on the outgoing call.
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
More support for:
IBM webMethods API Management SaaS
Component:
webMethods API Gateway (YAI)
Software version:
10.x
Document number:
7207209
Modified date:
20 March 2025
UID
ibm17207209