I've the same problem. If I set the size in the constructor, it will be used as content-length parameter in the HTTP header. But if I use setSize() in the write() method it has no effect and no content-length parameter is added to the HTTP header.
------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2903401

