curl / Mailing Lists / curl-users / Single Mail

curl-users

Post large file with --data-binary

From: Stephen Paul Weber <singpolyma_at_singpolyma.net>
Date: Wed, 14 Dec 2016 17:12:39 +0000

Today I tried to upload a 5GB file using --data-binary from a machine with
800MB RAM (virtual machine). I got this message:

        curl: option --data-binary: out of memory

After a lot of googling I find explanations about why `-d` and `-F` do this
(they have the build the formated request in memory) and recommendations to
use `--data-binary @large-file` -- but I am *already* using --data-binary...
does it suffer from the same issue? Is there any way to do this with curl,
or should I maybe be looking into something simpler (fixed HTTP header +
netcat maybe?)

Thanks.

-- 
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ:        https://curl.haxx.se/docs/faq.html
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-12-14