Forum Discussion
Yann_Desmarest
Sep 28, 2018Cirrus
Hi,
You can insert an irule within HTTP or ASM events to make sure that your requirement is respected :
when HTTP_REQUEST {
if { [HTTP::path] eq "/x/y/z" } {
set param1 [URI::query [HTTP::uri] param1]
set param_array [split [regsub -all {&=|&$} [URI::decode [URI::query [HTTP::uri]]] {}] "&"]
set param_count [llength $param_array]
if { !(($param1 eq "value1" or $param1 eq "value2") and ($param_count == 1)) } {
drop, reject, generate ASM violation, ...
}
}
}
Regards
Yann