Hi there,

On the server-side, you need to use representations that can compute their
size in advance such as StringRepresentation and AppendableRepresentation.

Again, those messages are just informational and should be filtered out
using a proper "logging.properties" configuration file. 

Best regards,
Jerome Louvel
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : webp...@tigris.org [mailto:webp...@tigris.org] 
Envoyé : jeudi 25 juin 2009 21:16
À : discuss@restlet.tigris.org; Rhett Sutphin
Objet : RE: Re: Mysterious message in client

   I do not want to change the setting in the log file. 

   How can I make sure to pass Content-Length header in the response so that
it'll not display the INFO messages?
   My current client code is as shown below:
Client client = new Client(Protocol.HTTP);  
Reference uri = new Reference("http://mywebsite.com/accounts/12";); 

Response response = client.get(uri);
if (response.isEntityAvailable()) {

        if (null != response.getStatus()) {
                if (response.getStatus().isSuccess()) {
                } else {

   I'll appreciate if you can provide some sample code.




Reply via email to