Re: Behaviour with malformed headers

Geoffrey Sneddon wrote:
> Hi,
> When a server receives a header (say, for example, a If-Modified-Since 
> header) whose value does not match the grammar (or is otherwise 
> malformed), what should that server do? Should it just ignore that 
> header and pretend it wasn't there, or should it return 400, or should 
> it do something totally different?
> I had a quick look over bis, but I haven't read it that closely, so it 
> is entirely possible that this is already specified.
 > ...

In general, the HTTP doesn't require a specific behavior for malformed 
requests. A server can accept them, or it can reject them with a 4xx 
status code.

BR, Julian

Received on Sunday, 3 May 2009 17:26:39 UTC