RE: Checking for Request Entity

2009-08-17 Thread Jerome Louvel
://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com/ http://www.noelios.com De : Avi Flax [mailto:a...@arc90.com] Envoyé : mardi 4 août 2009 21:54 À : discuss@restlet.tigris.org Objet : Re: Checking for Request Entity On Tue, Jul 28, 2009 at 05:34, webp...@tigris.org

Re: Checking for Request Entity

2009-08-04 Thread Avi Flax
On Tue, Jul 28, 2009 at 05:34, webp...@tigris.org wrote: Dont know why getRequest().isEntit​yAvailable() returns true, however getRequest().getEntity().getMediaType() return null if the request entity is missing. OK, thanks, that's helpful. I'd still like to understand the behavior though.

RE: Checking for Request Entity

2009-07-28 Thread webpost
Dont know why getRequest().isEntit​yAvailable() returns true, however getRequest().getEntity().getMediaType() return null if the request entity is missing. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2376246

Checking for Request Entity

2009-07-27 Thread Avi Flax
Hi all, quick question: I'm using Restlet 1.1.5 to write a quick API stub. I want a resource to allow POST only, and to request that a request entity be sent. The thing that's odd is, when I use curl to test a request without an entity, like so: curl -v -X POST