Hi Bryan, That's strange as a similar bug was fixed in 2.0.5. From changes log:
- Fixed bug causing first entity byte to be eaten if the connection wasn't persisting. Reported by Sebastien Gaide and Olivier Miel. Would you mind providing a small test case to reproduce/fix/verify? Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : Bryan Hunt [mailto:bh...@mac.com] Envoyé : jeudi 31 mars 2011 01:03 À : discuss@restlet.tigris.org Objet : First character of XML document gets eaten on POST I'm using Restlet 2.0.5 and I'm seeing the first character of an XML document being eaten on a POST. I'm sending the entity: <?xml version="1.0" encoding="UTF-8"?> and if I print out the entity inside my post function, I get ?xml version="1.0" encoding="UTF-8"?> which would explain why the DomRepresentation.getDocument() is failing. If I pad the entity with a leading space, it seems to work. Bryan ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2715473 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2715644