Forum Discussion
João_Assad_4295
Nimbostratus
Nov 14, 2005redirect POSTs bigger than 1MB
Hello,
I'd like to redirect POSTs bigger than 1MB to an error page, so I tried this:
when HTTP_REQUEST {
set method [HTTP::method]
set clen [HTTP::header Content-Length]
if { $metho...
James_Thomson
Employee
Nov 14, 2005You might need to collect the data with an http::collect. I think this will stop the BIG-IP from sending the bits and pieces to the server.
from manual.
HTTP::collect [] Collects the amount of data that you specify with the [length] argument.
When
the system collects the specified amount of data, it calls the Tcl event
HTTP_REQUEST_DATA or HTTP_RESPONSE_DATA. Use great caution
when omitting the value of the content length. Even though this is allowed in
certain cases; doing so or using a value larger than the size of the actual length
can stall the connection.