Forum Discussion
TCP iRule to find HTTP headers
- Mar 03, 2019
I think you could limit the iRule to this:
when CLIENT_ACCEPTED { HTTP::disable TCP::collect 4 } when CLIENT_DATA { if { [TCP::payload 4] contains "GET" } { HTTP::enable } TCP::release } when HTTP_REQUEST { my irule } when HTTP_RESPONSE { my irule }I'll expect the HTTP_REQUEST and HTTP_RESPONSE events will not be triggered when the HTTP profile is disabled.
My first thoughts are something like this: (the HTTP profile will be configured on the VIP)
` when CLIENT_ACCEPTED { TCP::collect 4 } `
` when CLIENT_DATA { if { ([TCP::payload 4] contains "GET") || ([TCP::payload 4] contains "POST") } { HTTP::enable How to add the iRule??? } else { HTTP::disable How to remove the iRule??? } TCP::release } `
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