users@grizzly.java.net

Re: HTTP/1.1 Expect: 100-Continue

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 27 Oct 2008 09:25:13 -0400

Salut,

Ray Racine wrote:
> Never mind, chair-and-keyboard. Not sure why my first code greps missed
> it...
> I found ACTION_ACK and Response.acknowledge().

You are welcome :-) Let us know how it goes.

A+

-- Jeanfrancois



>
> R.
>
> On Sat, Oct 25, 2008 at 4:44 PM, Ray Racine <ray.racine_at_gmail.com
> <mailto:ray.racine_at_gmail.com>> wrote:
>
> Hello,
>
> I'm using Grizzly as an embedded HTTP kernel in a project. I've
> started by creating my own Adapter patterned after GrizzlyAdapter.
>
> The problem I'm having is how to respond to a HTTP PUT/POST client
> request with an Expect: 100-Continue header. Attempting to write a
> "100-Continue" via GrizzlyResponse or tcp.Response get entrapped as
> the payload to a HTTP 200 response.
>
> How can my Grizzly server code in service(req,resp) respond with
> "100-Continue" and not commit the normal response which will be sent
> later via GrizzlyResponse???
>
> Thanks,
>
> Ray
>
>