W3C home > Mailing lists > Public > www-talk@w3.org > May to June 1995

Re: HTTP Content-length question...

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Sun, 7 May 1995 16:49:37 +0500
Message-Id: <9505072049.AA22106@www20>
To: www-talk@www10.w3.org, srinivas@cs.iastate.edu

> I have a simple HTTP client that requests an object from a HTTP server using
> the GET method. Now, the client is written such that it mandatorily needs the
> server to return the 'Content-length:' header in its response.
> The problem I am facing is, this header is returned for most kind of objects
> (image/gif, audio/au etc) but not for text/html. Is there any special form
> of the GET request that will force the server to return the size of the object
> (the 'Content-length:' header) irrespective of its MIME type ?

If this is the case then it is a server bug! The Content-Length header
should be sent whenever possible in a full response, and it should certainly
not have anything to do with the media type in which the object is rendered.

I can imagine that the problems can be due to server side includes in the
documents or dynamic documents generated by scripts.

-- cheers --

Henrik Frystyk                                          frystyk@W3.org
World-Wide Web Consortium,                              Tel + 1 617 258 8143
MIT/LCS, NE43-356					Fax + 1 617 258 8682
77 Massachusetts Avenue
Cambridge MA 02154, USA
Received on Sunday, 7 May 1995 16:49:39 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 16:08:17 UTC