cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Content-Length

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 22 Aug 2002 20:25:49 +0200 (MET DST)

On Thu, 22 Aug 2002, Roth, Kevin P. wrote:

> If you need this header for a particular piece of frequently-downloaded
> content, you might consider contacting the person in charge of that web
> site to see if there's anything they can do to help. Otherwise, you'll just
> have to download it in order to know the size.

... and if the contents is dynamicly generated, they may never know
before-hand how large the outcome actually will become.

In HTTP/1.0 they solved this by simply closing the connection when the server
had delivered all its data.

In HTTP/1.1 they introduced chunked-transfer encoding so that the client get
to know when it has received the last data without the server having to close
the connection.

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-08-22