Re: Sending multiple 100-Continue responses before a 200-OK

Nic Ferrier <[email protected]> Thu, 27 Oct 2005 22:15:26 +0100
Newsgroups gmane.comp.java.advanced-servlets
Message-ID <[email protected]>
Martin Cooper <[email protected]> writes:

> I have a need to be able to send multiple 100-Continue responses before the
> final 200-OK response from a servlet, with a very similar scenario to what Dan
> Rall describes here:
>
> http://mail-archives.apache.org/mod_mbox/tomcat-dev/200311.mbox/%[email protected]%3E
>
> In my case, it would be on Tomcat 5.0.28. Is there any way that this can be
> done? Even a Tomcat-specific way? If not (which is what I suspect), does anyone
> have suggestions as to how I can deal with this type of scenario?

This is very interesting question.


I don't believe it can be done within the constraints of the API.

The servlet API was designed to be call and response - we never
thought about modelling this sort of behaviour (incidentally there's a
lot of HTTP/1.1 that the servlet API doesn't really support).


As to how you _could_ do it... tricky. There's maybe support for this in
some of the better servlet containers (looked at Jetty?
http://jetty.mortbay.org/jetty/) but otherwise you could write your
own HTTP end to just do the data collection.

If it throws 400 or 404 or something for all other requests it
shouldn't be too hard to write.

For a small fee I'll write you one myself.


Nic Ferrier


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

Before posting a question, try to find your answer here: 
<http://www.egroups.com/links/advanced-servlets>
Announcements should go to: [email protected]
To Post a message, send it to: [email protected]
To Unsubscribe, send a blank message to: [email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/advanced-servlets/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/