Hello,

I dont see clearly the link between the fact that the client sends a PUT
request without content and the fact that the client receives a "204 - No
content" response.
Could you describe the resource that responses to the call, especially the
method that handles the PUT request?

Having said that, I've tested (on both 2.3 and 2.2 branches) the following
annotated method. It accepts the empty entity and converts it as a null
bean, and returns a 200 response.

    @Put
    public String hello(Contact contact) {
        System.out.println(contact);
        return "hello, world";
    }

With the following code, I notice that the received contact is null, and
that the response is "204 - no content" which is correct:
    @Put
    public Contact yop(Contact contact) {
        System.out.println(contact);
        return contact;
    }

best regards,
Thierry Boileau



2014-07-11 17:50 GMT+02:00 Frank Kolnick <[email protected]>:

> A previous thread seems to indicate that this has been fixed, but I still
> get a "No Content" error when I send a PUT to a Restlet-based server. (The
> client uses a library other than Restlet.)
>
> I have the latest stable release of Restlet.
>
> Is there a work-around? Preferably not one that requires inserting dummy
> content.
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3084942
>

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

Reply via email to