Hi Garry, You are right; the client-side currently lacks proper support for the Expect header. We have moved issue 413 to version 2.0 RC1, hoping we can find time to complete this part.
"Support the Expect header" http://restlet.tigris.org/issues/show_bug.cgi?id=413 We'll keep you posted. Best regards, Jerome Louvel -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : Garry Turkington [mailto:[email protected]] Envoyé : vendredi 8 janvier 2010 21:52 À : [email protected] Objet : Support for Expect and 100-continue re-visited 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 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2448281

