Good day.
I read this post
http://restlet.tigris.org/servlets/ReadMsg?listName=discuss&msgNo=5135
because the subject sounded similar to my current problem.
My existing newbie model consists of a run-up to a PUT that looks like
this:
Client client = new Client(Protocol.HTTP);
String baseUri = "/someuri";
String cookie = "thecookie";
// somehow set this cookie on the Request, but how?
Response response = client.put(baseUri, createEntityRep());
// ... postprocessing
So I can see from the post above how one can create a new Request,
then set the cookie on the request via setCoookies(), but I don't see
how one takes that Request and slipstreams back into the Client
semantics, where Protocol.HTTP has been set and appears to await the
ensuing "put".
Can someone post some complete sample code showing how, or whether,
Client still participates in this flow when request headers must be
set prior to send.
Thank you.