W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2006

Re: HTTP rfc related question, Content-length: 0 in GET request

From: Sylvain Hellegouarch <sh@defuze.org>
Date: Wed, 21 Jun 2006 15:38:01 +0100 (BST)
Message-ID: <4020.>
To: "Kuba Witczak" <czesacz@gmail.com>
Cc: ietf-http-wg@w3.org

> The problem is that a system, which relies on HTTP protocol, refuses to
> accept GET requests with header 'Content-length: 0'. This header added
> to request doesn't bring any information, and should be ignored by a
> system which relies on HTTP protocol, am i correct?

Why ignored? It precisely says that the Entity field of the request is
empty. Content-Length: 0 is a valid value.

> The sample request which causes error:
> GET /somepath/gfx.png HTTP/1.1
> ...som other headers
> Content-length: 0
> Perhaps you've faced similar problem previously and have some
> experiences.
> Is there any general rule in HTTP/1.1 protocol which allows or forbids
> 'Content-length: 0' header in GET requests?

It sounds like your system is in fault rather than HTTP :)
Or I don't understand your correctly.
In any case, the only place to look:

- Sylvain
Received on Wednesday, 21 June 2006 14:38:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:10:39 UTC