Hi,
I'm trying to upload files using Restlet as client and server. For the server,
I am using RestletFileUpload and it works.
However, for the client, I have no clue how to put files. All I have achieved
so far is:
Request request = new Request
(Method.GET, "http://localhost:8182/");
Client client = new Client(Protocol.HTTP);
client.handle(request);
Response resp = client.handle(request);
The client can reach the server, but of course with an error:
the request doesn't contain a multipart/form-data or multipart/mixed stream,
content type header is null
How can I set it so that the client can point to to some file and post it to
the server? Also, is compression supported and how to do it? I have found some
decode method. But is it for text encoding, e.g., to UTF-8, and not for
compression?
Thanks, billy