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 http://localhost:3000/path/to/resource

then in my Resource subclass, when I call getRequest().isEntityAvailable()
it returns true! This isn't what I expected.

Can someone explain why isEntityAvailable() is returning true in this case,
and/or suggest a different way to check whether a request entity has been
sent?

Thanks!
Avi

-- 
Avi Flax » Partner » Arc90 » http://arc90.com

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

Reply via email to