Hello,

sorry for the very late answer.
The problem is that you can't read the entity twice, because it's basically an 
input stream which can be read only once (for performance reason, because 
storing an entity in memory may take a large place).
You can just try by removing this line of code:

cr.getResponseEntity().write(System.out);
If you want to read several times the entity, you can instantiate a 
StringRepresentation with the cr.getResponseEntity().getText(). It persists its 
content in memory. 

Best regards,
Thierry Boileau

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2649137

Reply via email to