Forum Discussion
Kevan_50436
Nimbostratus
Apr 21, 2009Changing the body of a response
We have an application that builds and returns pages containing URLs as part of the response body based on how it was called. For example:
Called as: http://a.b.c.d/something/so...
Kevan_50436
Nimbostratus
Apr 22, 2009That was the pointer I needed, thanks!
The page is simple and requires all references to be changed. It also only occurs on a GET, and the bulk of the traffic comes from POST. So I think this will do the trick:
when HTTP_REQUEST {
set ReqMethod [HTTP::method]
}
when HTTP_RESPONSE {
if { $ReqMethod == "GET" }{
STREAM::disable
STREAM::expression @http://@https://@
STREAM::enable
}
}
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