Forum Discussion
yves_werniers_1
Jun 08, 2010Nimbostratus
For 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.