How to stream objects in one POST call ?

2012-06-09 Thread Laurent Droin
Hello, I am trying to do the following: stream object data from a client to a server using the HTTP POST method. I am able to send a full List of Serializable Object by implementing my own ServerResource and Application. It works great. What I would like to do is, instead of building a big List

RE: Restlet Maven link broken

2012-06-09 Thread Jerome Louvel
FYI, this issue has now been fixed by Thierry. Best regards, Jerome -- http://www.restlet.com http://twitter.com/#!/jlouvel -Message d'origine- De : Jerome Louvel [mailto:jerome.lou...@restlet.com] Envoyé : vendredi 8 juin 2012 17:03 À : 'discuss' Objet : RE: Restlet Maven link broken

Re: ClientResource, wrap and other best practices

2012-06-09 Thread Thierry Boileau
Hello Grant, I think you can also call ClientResource#getResponse()#abort : http://www.restlet.org/documentation/2.1/jse/api/org/restlet/representation/Representation.html#release%28%29 Best regards, Thierry Boileau Anyone else have any thoughts on this?

Re: InputStream loses line break

2012-06-09 Thread Thierry Boileau
Hello David, I've just tested using simply curl (command line : curl -X POST http://localhost:8183/david -d @fichier.txt) and nc (command line : nc -l 8183), and I can reproduce the same behaviour. You must use the curl --data-binary option : curl -X POST http://localhost:8183/david --data-binary