Re: ServletRequestListener and Expect-Header

2011-06-27 Thread Simon Olofsson
Chris, On 06/09/2011 06:13 PM, Christopher Schultz wrote: First, log a bug in bugzilla. Then, get a copy of the source code through svn. Edit the code, build it and test it (TC7 is much easier to build than earlier versions). Use "svn diff" to generate a patch file and attach that to the bug on

Re: ServletRequestListener and Expect-Header

2011-06-27 Thread Simon Olofsson
André, sorry for my late response. On 06/09/2011 08:20 PM, André Warnier wrote: As I read the API for the ServletRequestListener, I understand that this thing is called very early in the cycle. The spirit seems to be : provide a way to warn as soon as possible that a servlet request has come i

Re: Allow Servlet to Control "100-continue" response

2011-06-19 Thread Simon Olofsson
On 2011-06-18 13:46, Mark Thomas wrote: > You can use a Filter as mack Lu suggested Wrong. Thanks for the correction. In StandardWrapperValve the request is acknowledged before the FilterChain is constructed. I should've looked it up :) Simon -

Re: Allow Servlet to Control "100-continue" response

2011-06-18 Thread Simon Olofsson
Rehtron, On 2011-06-18 7:53, Rehtron wrote: I need to use the servlet to control this response and accept/reject the request before receiving the request content, Is there anyone could give me some advice? as you noticed it's too late when your Servlet is invoked: The request is already ackn

ServletRequestListener and Expect-Header

2011-06-08 Thread Simon Olofsson
Hi, I have a ServletRequestListener that tries too access a Request Parameter: sre.getServletRequest().getParameter("x"); When I send a POST-Request with the "Expect: 100-continue" HTTP Header it hangs waiting for the Request Body which isn't send because Tomcat didn't send a 100-continue Res