Re: Follow-up about PUT and DELETE in form methods

On 2011-12-13 16:13, Cameron Heavon-Jones wrote:
>
> On 13/12/2011, at 3:04 PM, Julian Reschke wrote:
>
>> Different clients have different expectations on the response payload they get for a successful DELETE, though. Most non-HTML clients do not care about any additional information, so sending more than a status message is a waste of bits.
>
> Why is the client advertising that it "Accept: text\html" if it doesn't want it? Seems like it is requesting a waste of bits.
>
> if it wants a simple status message it should "Accept: text\plain" or some such other.

If everything was written from scratch, maybe. But it isn't.

Servers have sent HTML-typed status messages for over a decade now, and 
the HTTP spec even recommends it in several places.

Best regards, Julian

Received on Tuesday, 13 December 2011 15:33:06 UTC