Forum Discussion
RobinsonJA_2717
Nimbostratus
May 19, 2017iRule to modify http response
Hello all,
Seeking some assistance with modifying a http response from a server back to a client.
Senario is as follows (All web traffic)
VS_A answers on 443 and sends to pool members on 9999...
JG
Cumulonimbus
May 19, 2017Try this one then:
when HTTP_RESPONSE {
if { [HTTP::header exists "Location"] } {
log local0. "Original Location: [HTTP::header Location]"
set new_location [string map {"www.acme.com:9999" "www.acme.com:888"} [HTTP::header value Location]]
HTTP::header replace Location $new_location
}
}
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