Christopher Schultz schrieb:
Christian Kindler wrote: | I want to interrupt a multipart post request (e.g. if the content-length | exceeds a given limit). The problem is, that the client seems to | continue sending the data to the server and gets no response from the | server until the whole data is send.Maybe try this: ~ if (request.getContentLength() > 1000000) { ~ request.getInputStream().close(); ~ throw new ServletException("request limit exceeded."); ~ } ...or some variant thereof.
Hello Christopher, that works, thanks! Regards, Christian --------------------------------------------------------------------- To start a new topic, e-mail: [email protected] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
