Forum Discussion
BlurredVision_1
Jan 30, 2008Nimbostratus
I am running v9.4.2. I think the issue to get this working (optimisations aside for the moment, this is just to show it working as a Proof of Concept) is going to be Content-Type evaluation so we are only validating text content...
Joe mentioned in his 2006 post :Good point. I've updated the wiki sample with a check to only test for text based responses (ie. Content-Type starts_with "text/"). If you need to be more specific, you could easily create a data group containing the content types you want to check for and replace my conditional with a matchclass command comparing the content-type to a member of the data group.
but there does not seem to be a Content-Type check in the wiki listed iRule any more.
Ill try this and see how I go:
when HTTP_RESPONSE {
if { [HTTP::header "Content-Type"] starts_with "text/" } {