Forum Discussion
mrbongoco_64052
Nimbostratus
Apr 23, 2012HTTP_Response Client side
Hi
Ive been looking to write and Irule to strip out the HTTP::Header for all "Server" types but have been unable to get this work.
Essentially it works perfectly server side, but when a user ini...
John_Matlock_42
Nimbostratus
Apr 23, 2012In addition to Michaels response, clientside in this context isn't required as when you perform an action in the HTTP_RESPONSE you're modifying the packets as they're on their way back to the client. I dropped this irule in my test environment and confirmed it worked.
when HTTP_RESPONSE {
if { [HTTP::header "Server"] contains "Microsoft-IIS/7.0" } {
HTTP::header replace "Server" "testing"
}
}
John
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