Forum Discussion
HEADER INSERT iRule
Hi Guys,
I'm new to the topic of iRules and would like some help with writing up an iRule that can do the following:
F5 LTM should insert header as follows:
-- F5 checks to see if a "origin-scheme" header exists
-- -- If it already exists for any reason, it will remove it and re-insert its own.
-- -- If it does not exist, it will insert one.
-- "origin-scheme" header is inserted with a value of "http" or "https" depending on how traffic comes to F5 (port 80 or 443)
*I would greatly appreciate any help/guidance!!!
1 Reply
- Kevin_Stewart
Employee
Something like this:when HTTP_REQUEST { if { [HTTP::header exists "origin-scheme" } { HTTP::header remove "origin-scheme" } HTTP::header insert "origin-scheme" "my-value" }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
