Forum Discussion
Robert_47833
Altostratus
Mar 21, 2015irule VS http profille
I have one interesting question which confuse me a lot today since I learn something new in BIGIP.
My questions are:
1:If I removed one header in HTTP profile,but add same header back in irule,...
- Mar 21, 2015
I give it a test:
root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm profile http customer_http ltm profile http customer_http { app-service none defaults-from http header-erase Headertest proxy-type reverse } root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm rule http_header_test ltm rule http_header_test { when HTTP_REQUEST { HTTP::header insert "Headertest" "123" }}
Then test with curl 10.1.1.73 -H "Headertest: 123", from the capture it shows http header Headertest still in the request.
StephanManthey
Nacreous
Mar 21, 2015Hi Robbie,
the iRule would look as follows:when HTTP_REQUEST {
if {[HTTP::header exists Accept-Encoding]} {
HTTP::header replace Accept-Encoding shdc
}
}
Regarding the syntax of path specification: your sample shows a regular expression ".*" which matches any number of any characters.
Thanks, StephanHelp 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