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...
unRuleY_95363
Nov 14, 2005Historic F5 Account
I just looked closer at your HTTP::respond command and it looks like you might be having an error:
HTTP::respond 301 "Location" "http://[HTTP::host/errorpage.htm"Notice the missing close square bracket that should be after HTTP::host. Check your log file (/var/log/ltm) and see if you were in fact getting a rule error. That would cause an abort which would result in the Document contains no data.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects