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...
drteeth_127330
Nov 16, 2005Historic F5 Account
BIG-IP has no support for early responses at this time. It's also worth mentioning that even if BIG-IP did send the early response, there's no guarantee that the client will pay any attention.
That being said, rapmaster_c suggested that you try doing this at the layer below HTTP. That is, try crafting the response with TCP::respond. You'll need to create a complete response with the HTTP status line and headers. Then you can force the connection closed with HTTP::close. I think the HTTP::close might discard the data received so far. To be honest, this is a long shot, but it might work.
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