curl-users
RE: Changes to http uploads
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 15 Feb 2004 14:04:43 +0100 (CET)
Date: Sun, 15 Feb 2004 14:04:43 +0100 (CET)
On Mon, 9 Feb 2004, Roth, Kevin P. wrote:
> Out of curiosity - is there any reason to require BOTH headers (as described
> below) to be set in order to disable chunked encoding?
> It seems easier (to me) to just ask the users to set a 'Content-Length'
> header, and then automatically turn off chunked-encoding (both the body and
> the Transfer-Encoding header).
In fact, the Transfer-Encoding header is the one that disables the chunking,
the Content-Length in that command line would only be used to satisfy the
server.
But I agree anyway. If the Content-Length is set, we should disable the
chunking as well...
-- Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/ [[ Do not send mails to this email address. They won't reach me. ]]Received on 2004-02-15