Hi Luiz,

There are two cases a StringRepresentation has an unknown size:
 - the underlying string is null
 - an UnsupportedEncodingException is thrown when the size of the 
StringRepresentation is computed.

The second case happens in the "updateSize" method:
                if (getCharacterSet() != null) {
                    
setSize(getText().getBytes(getCharacterSet().getName()).length);
                } else {
                    setSize(getText().getBytes().length);
                }
Do you specify a CharacterSet? If not, what is your default one?

Best regards,
Thierry Boileau

> Hello Ben,
>
> Yes, I had tried to use StringRepresentation, and my request continues to be 
> Chunked.
>
> Thanks,
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2427857
>
>

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

Reply via email to