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.194.221.74.7.1150900681.squirrel@mail1.webfaction.com>
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:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:49:44 GMT