curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Request: flag for delayed start of HTTP until STDIN sends EOF

From: Erik Johansson <erik_at_ejohansson.se>
Date: Tue, 10 Oct 2017 11:06:23 +0200

On 9 October 2017 at 19:17, Rudy via curl-library <curl-library_at_cool.haxx.se
> wrote:

> Goal:
> slow_script.pl | curl "-FmyUpload=@-;filename=foo.txt"
> --wait-for-eof-for-upload https://user:pass@haxx.se/upload.php
>

Or install moreutils and use sponge.
slow_script.pl | sponge | curl ...

// Erik

-- 
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-10-10