[8157] in www-talk@info.cern.ch
Re: HTTP Content-length question...
daemon@ATHENA.MIT.EDU (Henrik Frystyk Nielsen)
Sun May 7 17:11:56 1995
Date: Sun, 7 May 1995 16:56:41 +0500
Errors-To: procmaster@www19.w3.org
Reply-To: frystyk@w3.org
From: frystyk@w3.org (Henrik Frystyk Nielsen)
To: Multiple recipients of list <www-talk@www10.w3.org>
> 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