Forum Discussion
PeteWhite
Jun 21, 2020Employee
what you are trying to do will work with GET but you may wish to consider POST, where you will have to use HTTP::collect and use HTTP::payload length.
For use with GET, you can simply use string length:
when HTTP_REQUEST {
if { [expr { [string length [HTTP::request]] eq ne expr [HTTP::header "Content-Length"]} {
reject
}
}