Rhett,
Yes, forgot i asked this question before. IMHO i wouldn't encode the
'put MUST have a non-null entity) policy in the framework. If you do
then you should provide for a mechanism to override it
(allowNullEntity or something). From my reading of the HTTP spec
doesn't specify that a PUT *MUST* have an entity although i agree that
in most cases that would be the case. In my particular case the URL
includes all the information required to create the resource but i
have to stick in a non-null entity body to get this to work with the
framework
cheers
</jima>
On 27/05/2008, at 12:37 PM, Rhett Sutphin wrote:
Hi Jim,
On May 26, 2008, at 7:09 PM, Jim Alateras wrote:
Any reason why, i nthe restlet framework, a PUT expects to have an
entity. When i issue a PUT with an empty entity i get a 400 response.
Last time you asked this question ( http://restlet.tigris.org/servlets/ReadMsg?list=discuss&msgNo=5132
), I pointed you to an earlier discussion ( http://restlet.tigris.org/servlets/ReadMsg?listName=discuss&msgNo=3902
). The summary is: the HTTP spec is vague, but most
implementations expect PUTs to have an entity. For more details,
read that second-linked thread. Is there something in particular
that was unclear or that you disagreed with?
Rhett
cheers
</jima>