cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: transfer-encoding chunked please

From: <RBramante_at_on.com>
Date: Fri, 29 Nov 2002 09:59:37 -0500

How about adding a constant for setting the CURLOPT_INFILESIZE that would
imply a dynamic length and request that libcurl perform the transfer in
chunked fashion?

e.g. CURLOPT_INFILE_DYNAMIC = -1

This would at least allow the user to have a more precise way of requesting
chunked encoding above setting a custom header without needing to add
another CURLOPT. Since you are"setting" the infilesize (even though it may
be unknown) this would seem to make sense to me and is what I did when I
wrote my chunked encoder wrapper. If I received a value of >=0 I just set
INFILESIZE to that. If I recv'd < 0, that signalled me to perform a
chunked transfer.

                                                                                                                                  
                      Daniel Stenberg
                      <daniel_at_haxx.se> To: libcurl Mailing list <curl-library_at_lists.sourceforge.net>
                      Sent by: cc:
                      curl-library-admin_at_lists.sour Subject: transfer-encoding chunked please
                      ceforge.net
                                                                                                                                  
                                                                                                                                  
                      11/29/2002 02:25 AM
                      Please respond to
                      curl-library
                                                                                                                                  
                                                                                                                                  

Hey

Yesterday I made libcurl capable of by-force using chunked
transfer-encoding
when sending HTTP.

Currently, the library checks for the added custom header
"Transfer-Encoding:
chunked" and if that is present it'll enable the chunked-transfer stuff.

Is this good enough for the library or do we want an easier way to enable
this? It may be a bit too cryptic and not really something people would
just
guess or something...

Should I just add yet another CURLOPT-option?

--
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Received on 2002-11-29