Forum Discussion
george_wang_323
Nimbostratus
Jan 25, 2007parsing http response body has no performance impact?
We have a requirement to ensure that none of our web applications contains a specific text string (let's use the string "invalid:word" as an example). Because we have F5 BigIP in front of all web servers, one thought is to use iRule to filter the HTTP response body.
Is this a good idea in terms of performance? could some one show me an example of how to do it? should I use "HTTP::collect [] " and "HTTP::payload [] "?
Thanks,
George
1 Reply
- AaronJBRet. EmployeeI think you might find greater performance using the Stream profile and it's pattern matching for this - especially if all you want to do is a 'search & replace' on the outgoing stream.
If you want to drop connections and/or send an alternative response based on the stream pattern matching then that is possible via an additional iRule - but I would think that using the matching of the stream profile to trigger the iRules 'STREAM_MATCHED' event would be far better than using the ::collect methods to collect entire HTTP responses.
I think if you search for "STREAM_MATCHED" here on the forums you'll find some discussions that might point you in the right direction.
--
Aaron
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