Thanks to all who reply.

Yes, I am developing a REST interface for a large file storage system by
Servlet & Tomcat.

The Expect 100-continue is highly inefficient for LARGE file transfer, I
need to validate HTTP header by our access control logic when PUT a file, if
the headers is invalid, the transfer request  will be refused before the
client to send the body.

But I cannot implement this scenario by Servlet, Tomcat will always pass the
request header & body to my Servlet at once.

I will investigate the Tomcat Valve mechanism, but one thing is for sure,
the Valve based implementation depend on the Tomcat private implementation,
that means I cannot use Jetty to do unit test.

Can Servlet 3.0 Comet implement this?

Thanks.

Zijian.

2011/6/19 Pid <p...@pidster.com>

> On 18/06/2011 06:53, Rehtron wrote:
> > Hi
> >
> > Currently if a client supplies the "Expect: 100-continue" header on a
> POST
> > or PUT, Tomcat appears to send the response header ("100-continue")
> before
> > passing control to the servlet.
>
> Out of interest, are you asking to control specifically the 100
> response, or all access to the servlet?
>
> Are you currently implementing access control logic inside the servlet?
>
>
> p
>
> > 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?
> >
> > Thanks.
> >
>
>
>

Reply via email to