Anthony_Epron
Jun 16, 2020Nimbostratus
Irule to make HTTP request size compliant with header
Hello,
I need to implement in F5 is a possibility to reject an HTTP request in case the size of the request is not corresponding to the Content-Length of the header.
I cannot use ASM for it.
I think use an irule like below where I can find a way to replace "set req [HTTP::request]" by a condition who indicate the size of the request in bit.
when HTTP_REQUEST {
set req [HTTP::request]
set len [HTTP::header "Content-Length"]
if { [expr $len eq ne expr $lreq} {
reject
}
}
}
Thanks in advance for your help.