Forum Discussion
Benoit_Durand
Nimbostratus
Jan 07, 2020Need Help with an iRule to Change HTML Status-Line Text
Greetings and thank you for your time. I have a back end node that provides status code "200" when customers (clients) expect "200 OK" in their own monitors. I tried the snippet below but it drops ...
Jan 07, 2020
Hi Benoit Durand,
Can you try this?
when HTTP_REQUEST_SEND {
TCP::collect 15
}
when SERVER_DATA {
# log local0. "[TCP::payload 15]"
if { ([TCP::payload 15] contains "200") and not ([TCP::payload 15] contains "200 OK") } {
TCP::payload replace 9 3 "200 OK"
}
TCP::release
}- Benoit_DurandJan 08, 2020
Nimbostratus
Thanks eaa, will try it tomorrow.
Question though: Will this only apply to the initial HTML header or any subsequent TCP payload that contains "200" as part of of the first 15 bytes of a server data response?
Help 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
