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

Re: HTTP Content-length question...

From: Alexei Kosut <akosut@nueva.pvt.k12.ca.us>
Date: Sun, 7 May 1995 14:20:49 -0700 (PDT)
To: Srivatsa Srinivasan <srinivas@cs.iastate.edu>
Cc: Multiple recipients of list <www-talk@www10.w3.org>
Message-Id: <Pine.HPP.3.91.950507141858.5053A-100000@ace.nueva.pvt.k12.ca.us>
On Sun, 7 May 1995, Srivatsa Srinivasan wrote:

> 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 ?

The most recent HTTP 1.0 draft I could find states:

   Although it is not required, applications are strongly encouraged to
   use this field to indicate the size of the Entity-Body to be
   transferred, regardless of the media type of the entity.

The first five words here are the important ones... the server doesn't 
have to include Content-Length, and sometimes it doesn't. It's certainly 
nice, but you can't assume that this header will exist when writing an 
HTTP client. Because it won't always. But it is odd that your server 
returns the header for images, but not text... sounds like a bug.

--
Alexei Kosut          Live, Londo and Prosper: /\/\/\\____-_____--  __.__..
akosut@nueva.pvt.k12.ca.us             |-|-----|:|:|:: ..| |...|  ||=/  \
Lefler on IRC                          |-|-----======____| |---|  |-=\__/
<URL:http://www.nueva.pvt.k12.ca.us/~akosut/>  \/\/\/     -     --
Received on Sunday, 7 May 1995 17:20:54 UTC

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