Hi,
I'd posted about support for the Expect header and the 100 CONTINUE
response code. Jerome responded in the other thread -- sorry for the
late response -- and I'm following up here now I've subscribed to the
list.
Here's what was suggested for the ServerResource subclass:
Response provisionalResponse = new Response(getRequest());
provisionalResponse.​setStatus(Status.INFO_CONTINUE);
provisionalResponse.commit();
This works... to a point. The client received the 100 CONTINUE
response but seemingly at the same time as the following 200 success
code and I didn't see the server side get the additional updated
request headers. However, after getting back to the problem I'm not
convinced the client is itself doing the right thing re the Expect
header and waiting for the interim response.
So I want to write a client to test this -- are client-side support
for sending a partial request, parsing an interim response then
updating the request accordingly in the latest snapshot?
And is there any particular magic I need to make the server side work
as advertised? Looking through the code the commit() methods on the
Request and Response classes are empty but I'm sufficiently new to
Restlet that I'm not sure if there's some sub-classing going on here
that I'm not aware of. I'm not using any connectors, just the default
out-of-the-box HTTP support/engine.
Thanks,
Garry
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2435861