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

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

From: Kuba Witczak <czesacz@gmail.com>
Date: Wed, 21 Jun 2006 14:17:24 +0000
Message-ID: <a2f35d440606210717k7c988c66k4772fb10fafbcd89@mail.gmail.com>
To: ietf-http-wg@w3.org


I'm not sure if this is the right group to ask this question. If you
know a better place please give me such advice.

The problem relates to HTTP protocol specification. I studied the RFC
2616 which describes HTTP/1.1, but AFAIC the situation is not described
directly there.

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?

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
Is there any general rule in HTTP/1.1 protocol which allows or forbids
'Content-length: 0' header in GET requests?

I've really tried to find it on my own in RFC 2616, but I might missed
some valuable information.
Please share your opinions.

Thanks in advance,
Received on Wednesday, 21 June 2006 14:21:37 UTC

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