Forum Discussion
1 Reply
Sort By
- hooleylistCirrostratusHello,
when RULE_INIT { Maximum number of bytes to collect in request set ::max_collect_length 1024000 } when HTTP_REQUEST { Get the content length so we can buffer the data to process in the HTTP_RESPONSE_DATA event if {[HTTP::header exists "Content-Length"] and [HTTP::header "Content-Length"] < $::max_collect_length}{ set content_length [HTTP::header "Content-Length"] } else { set content_length $::max_collect_length } if {$content_length > 0}{ if {$static::enc_dbg}{log local0. "$log_prefix: Collecting $content_length bytes"} HTTP::collect $content_length } } when HTTP_RESPONSE_DATA { Get value for province parameter set province [URI::query "?[HTTP::payload]" province] switch $province { "abc" { pool my_pool_1 persist uie [HTTP::cookie "JSESSIONID"] } "def" { pool my_pool_2 persist uie [HTTP::cookie "JSESSIONID"] } default { pool pool_public_web_ALL persist source_addr 30 } } }