cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl chunk option?

From: Chris Cross <xcross_at_us.ibm.com>
Date: Wed, 2 Sep 2009 11:56:46 -0400

daniel_at_cool.haxx.se wrote on 07/15/2009 04:30:26 PM:

>
> On Wed, 15 Jul 2009, Chris Cross wrote:
>
> > I'm using curl to test my server application's performance with very
large
> > messages, ie, messages > 1GB. Is there an option to use chunked
encoding so
> > curl doesn't buffer the entire message?
>
> I assume you mean you're sending data over HTTP, and then no the curl
tool
> will not do that with -d, but you can use -F or HTTP PUT with -T. Oryou
write
> your own test tool using libcurl or a libcurl binding to do exactly what
you
> want.
>

Daniel, curl certainly appears to be streaming instead of buffering the
message but in both cases, -T and -F, the headers say Content-length. Is
there an option to force curl to use "Transfer-encoding: chunked" ?

Thanks,
Chris

Chris Cross
DataPower Development
xcross_at_us.ibm.com
office 561-793-5110

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-09-02