Hi
I have a working processing rule with an AAA action. The implemented stylesheet connects to an auth service and uses it to check the credentials.
As I said, this works without any problems.
The auth service is now being changed, and an http header “host: auth” must be included for the connection.
With the following adjustment (http-headers="HeaderValues") in the DataPower XSLT stylesheet, the HTTP header can be set, but the host entry is replaced by the Datapower with the target host:
<!-- HTTP-Header setzen -->
<xsl:variable name="HeaderValues">
<header name="Host">"auth"</header>
<header name="Test">"Test"</header>
</xsl:variable>
<!-- Siehe https://www.ibm.com/docs/en/datapower-gateway/10.5.x?topic=elements-dpurl-open -->
<dp:url-open
target="https://..."
ssl-proxy="client:..."
http-headers="$HeaderValues"
response="responsecode" >
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
etc.
</S:Body>
</S:Envelope>
</dp:url-open>
etc.
The http header “Test” is set, as is the http header “Host,” but for the http header “Host,” Datapower replaces “auth” with the target host. I was able to verify this using Packet Capture.
How can I prevent the host name from being rewritten?
The firmware is IDG.10.5.0.19.
Best regards,
Andreas