Forum Discussion
Bert_Vandebroek
Nimbostratus
Jun 09, 2008selective HTTP_RESPONSE_DATA
Hi guys,
Is there a way to do a selective HTTP_RESPONSE_DATA depending on the url a user is accessing ?
Got a problem with the customization of HFM, the app server has some issues with ssl ofloading so
we had to write a little irule that takes care of this
from the forums we found that with a HTTP_RESPONSE_DATA and HTTP_RESPONSE we could re-write the output
Now, I would need to enable / disable this depending on the url a user is using
HTTP::uri cannot be used, is there something else I can try ?
cheers
b
- hoolio
Cirrostratus
Hi,class my_uris { "/uri1" "/uri2" "/uri3" }
when HTTP_REQUEST { Check if the requested URI is part of the class if {[matchclass [HTTP::uri] starts_with $::my_uris]}{ Track that we want to collect the response data set collect_response 1 } else { Track that we do not want to collect the response data set collect_response 0 } } when HTTP_RESPONSE { Check if we're collecting the response if {$collect_response}{ ... } }
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