Hi Bjorn,

This is due to GAE not supporting HTTP chunked encoding. In Restlet 2.1 there 
is now a workaround with ClientResource#setRequestEntityBuffering(true), when 
for 2.0 you need to manually buffer your entities to prevent chunking.

See additional details here:
http://wiki.restlet.org/docs_2.1/13-restlet/21-restlet/318-restlet/303-restlet.html

Best regards,
Jerome
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.o​rg
Noelios Technologies ~ http://www.noelios.com




-----Message d'origine-----
De : Bjorn Roche [mailto:[email protected]] 
Envoyé : mardi 14 juin 2011 19:24
À : [email protected]
Objet : POSTing to GAE

Recently I upgraded my google eclipse plugin and discovered that POSTing form 
data to restlet always resulted in an empty form. eg.

curl URL -X POST -d "key=val"

@Post("form")
public void postMethod(Form form) {
   form.getFirstParameter("key"); // == null!
}

I see a related topic on this list, but it is unresolved. No solution 
elsewhere. I am using Restlet v2.0.7.

http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2747010

Possibly related:
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2460688

Since no one is reporting this trouble with either google app engine or restlet 
alone, perhaps something is going on with the interaction between restlet and 
GAE?

Thanks,

bjorn

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2765418

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2765487

Reply via email to