curl-users
Re: Curl malloc fails
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 26 Jun 2012 22:58:39 +0200 (CEST)
Date: Tue, 26 Jun 2012 22:58:39 +0200 (CEST)
On Tue, 26 Jun 2012, C++ RTMP Server wrote:
> I'm trying to convince curl to do a "Transfer-Encoding: chunked" POST
> request. Here is what I tried so far:
It is a bit tricky. The -d option doesn't really let you do that (but will
always try to read entire thing into memory first and then send it off), but
-T does - you just need to "convert" that into a POST instead of PUT.
Something like:
$ cat hugefile | curl -T- -X POST [URL]
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-06-26