Forum Discussion
yves_werniers_1
Nimbostratus
Jun 08, 2010irule stream::exporession and data group list
Hello,
I would like to rewrite responses from webservers to add a part to the url (in certain cases). Is it possible to use the stream::expression with data group lists? Like that, I could m...
yves_werniers_1
Nimbostratus
Jun 08, 2010For the moment, I have this:
when HTTP_REQUEST {
Don't allow data to be chunked
if { [HTTP::version] eq "1.1" } {
if { [HTTP::header is_keepalive] } {
HTTP::header replace "Connection" "Keep-Alive"
}
HTTP::version "1.0"
}
}
when HTTP_RESPONSE {
foreach stukje1 [class get test_in] stukje2 [class get test_out])
{
log local0. "stukje1: $stukje1"
STREAM::expression "@$stukje1@$stukje2@"
STREAM::enable
}
}
and my logging looks lik ethis:
TCL error: response_rewrite - list element in braces followed by ")" instead of space while executing "foreach stukje1 [class get test_in] stukje2 [class get test_out]) { log local0. "stukje1: $stukje1" STREAM::expression "@$stukje1@$stukje2@" ..."
so it looks like my "class get" is not even working.
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
