Forum Discussion
Rajesh_Ojha_355
Nimbostratus
Mar 19, 2018Need help for replacing header in HTTP_RESPONSE
We are using F5 as the proxy server between client and destination. We need to replace the Host of a URL in both forward and reverse flow. Forward case is working as expected, but Reverse doesn't see...
iaine
Nacreous
Mar 20, 2018Hi
In your HTTP_RESPONSE code you are looking for a header called service-2.destination.com rather than looking for a header value.
Does something like this work?
when HTTP_RESPONSE {
if {[HTTP::header "Host" equals "service-2.destination.com" } {
HTTP::header replace Host "service-t-client.com"
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
