David_DeLaune_2
May 25, 2007Nimbostratus
Modifying Request Content Without Client Sending All Content
Newbie question...
We are attempting to abort large HTTP single file uploads (> 30MB) without the client sending all of the content (having the client wait for all the bits to be sent) by looking at the Content-length header and making a determination on the size.
Based on that scenario, I have a couple of questions...
Does the F5 iRule facility provide the capability to read the stream as the bytes come across and populate the internal variables so that you can make these decisions before reading all of the bytes in the stream? In other words, read the HTTP headers and populate the associated iRule variables before all of the content is sent from the client.
Can you tell the F5 to stop reading the bytes from the client and replace the request content with something different so that the client does not end up sending all of the content.
Pseudo code:
if Content-Length > 30MB
then
request content = ""
URI = "/someuri/fileuploaderror.html"
end if
Thanks very much.
-Dave