Hi,
I need help for the Restlet API to GWT and AppEngine.
I realize an asynchronous call to a Resource by POST protocol but App
Engine send me an error.
The obtained error :
Google Error
Length Required
POST requests require a Content-length header.
I did not find in the RestLet documentation how to specify it.
I hope you can help me to resolv that.
Here is the calling code in GWT with Restlet:
client.post("Ressource URI", new StringRepresentation(""), new Callback
() {
@Override
public void onEvent(Request request,Response response) {
lab.setText(response.getEntity().getText());
}
});
And here is the resource's code:
@Post
public Representation postresp() {
String res = "POST OK !";
return new StringRepresentation(res, MediaType.TEXT_PLAIN);
}
That's really simple ...
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---