iRule to disallow request Content-Length HTTP header from being sent by server
I have encountered the below error.
http_process_state_prepend - Invalid action:0x109010 Server sends too much data. serverside (10.10.10.10:80 -> 20.20.20.20:17587) clientside (149.126.75.14:17587 -> 172.16.172.23:443) (Server side: vip=/Common/vs_test.com_443 profile=http pool=/Common/pool_test_prod_80 server_ip=10.10.10.10)
I don't want t enable below passthou.invalid as it will apply for all Virtual server . So decide to use i-rule but not sure the below i-rule is correct or not. can you please help in correcting if it is wrong.
- To enable the tmm.http.passthru.invalid_content_length database key, type the following command:
- modify /sys db tmm.http.passthru.invalid_content_length value enable
i-rule is correct for disallowing Request Content-Length in the header from being sent from server.
when HTTP_REQUEST {
if { [HTTP::method] eq "POST" } {
HTTP::collect
}
}
when HTTP_REQUEST_DATA {
HTTP::header replace Content-Length [HTTP::payload length]
}