users@jersey.java.net

[Jersey] Re: Jersey2: Impossible to POST with empty entity?

From: cowwoc <cowwoc_at_bbs.darktech.org>
Date: Tue, 05 Nov 2013 16:26:54 -0500

     Unit tests. The server might be written in Jersey but I have no
guarantee that the client will be. In general, we must be able to test
all legal use-cases (even if they are not meaningful) otherwise we have
no way of hardening the server against 3rd-party clients.

Thanks,
Gili

On 05/11/2013 3:49 PM, Marek Potociar wrote:
> Legal does not necessarily mean meaningful or correct. Why do you want
> to do it?
>
> Marek
>
> On 26 Oct 2013, at 22:12, cowwoc <cowwoc_at_bbs.darktech.org
> <mailto:cowwoc_at_bbs.darktech.org>> wrote:
>
>> Hi,
>>
>> I just noticed something funny. It seems to be impossible to send
>> POST requests to a URI:
>>
>> 1. With a Content-Type but no body
>> 2. Without either a Content-Type or body
>>
>> Why is that? I believe both of these use-cases are legal.
>>
>> Thanks,
>> Gili
>