Hi 

I can successfully process a form that is POSTED by a Web browser using the
Restlet API, however it is unclear how to create a form and post 
it using the API. 

I have tried the following code but the form data does not get 
picked up by the form processing code. Can you please advise?

Form form = new Form();
form.add("data", "fred");

Representation webForm = form.getWebRepresentation();
Client client = new Client(Protocol.HTTP);      
Response response = client.post(url.toString(), webForm);

thanks 

Geoff

Reply via email to