Setting Content-length in http client request?

2007-07-15 Thread Erik Hetzner
Hi all, I am having trouble sending a request to a restlet 1.0.2 service from another restlet. In brief, using a file representation is not setting the Content-Length, and if the Content-Length is not set, the Restlet gives me an empty entity in the request. Here is some sample code for the clien

Restlet 1.0.3 released

2007-07-15 Thread Thierry Boileau
Hi all, The third maintenance release of Restlet 1.0 is available. It fixes 8 bugs found in version 1.0.2, and the code has been cleaned from the next 1.1 release code. Changes log: http://www.restlet.org/documentation/1.0/changes Download links: http://www.restlet.org/downloads/1.0/restlet-1.

Naming a resource with URI containing query part... is it OK?

2007-07-15 Thread Aldo Bucchi
HI all, I currently have a read-only server that exposes some resource uris with query parts like the following: http://foo.com/bar?a=123&b=456 I now need to implement DELETE and PUT operations over these resources... and I just realized that working on URIs with query variables is a bit messy.

Correct usage of TunnelService to tunnel HTTP Methods

2007-07-15 Thread Aldo Bucchi
Hi all, I am trying to tunnel PUT and DELETE methods throught POST... no luck so far is there something wrong with this code?? Application app = new Application( component.getContext() ) {