Forum Discussion
Anthony
Nimbostratus
Sep 27, 2019TCL error on simple replace header iRule
I'm getting a TCL error from a very simple iRule and cannot understand what scenario would cause it to fail. The iRule does a simple port removal from the host header. when HTTP_REQUEST
{
...
- Oct 04, 2019
Try this.
when HTTP_REQUEST { if { [HTTP::host] contains ":" } { log local0. "[HTTP::host] becomes [getfield [HTTP::host] {:} 1]" HTTP::header replace Host [getfield [HTTP::host] {:} 1] } }KR,
Dario.
Anthony
Nimbostratus
Oct 03, 2019We're running v12.1.4. It only happens every so often so I don't actually know what is causing it. I did wonder if it was something to do with the string replacement. I prefersetting a varaible before the replacement so I'll do that and see if it stops it.
Thanks for your answers.
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