cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Changes to http uploads

From: Roth, Kevin P. <KPRoth_at_MAPLLC.com>
Date: Mon, 9 Feb 2004 11:37:20 -0500

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).
 
- Kevin

________________________________

From: Daniel Stenberg
Sent: Mon 2/9/04 11:13 AM

In this case, for you, curl will enable chunked transfer-encoding and upload
this accordingly. I have no idea why it "hangs". Possibly because the server
gets confused by both a chunked header (and chunked body) and a
Content-Length.

...

  echo -en test |curl -T - -H "Transfer-Encoding:" -H "Content-Length: 4"
Received on 2004-02-09