Forum Discussion

Mark_28706's avatar
Mark_28706
Icon for Nimbostratus rankNimbostratus
Sep 27, 2007

File size limitation

Can anybody help out with the below request !!!!

 

I am looking to setup an irule that will check the size of a document posted via a website and limit this to a specific size eg 10mb, if a request is over this size I am then looking to redirect the user to another web page.

 

 

Can any Irule experts assist with this request ?????

3 Replies

  • Is it possible for uploads to not contain a content length header value, or is that just for server responses? (I know server responses aren't required to have that in the header, not sure about requests).
  • aherrman, it is possible that clients could send a chunk encoded request without a Content-Length header. Clients can send a request with Transfer-Encoding: chunked, without specifying the content length. I'm not sure how you could enforce a limit without parsing the full request data. Nor am I sure how you could parse the full request data with iRules.

     

     

    I don't think many clients use chunked encoding for requests though, so it might be something you could either ignore or block altogether.

     

     

    Aaron