curl-library
Re: Request: flag for delayed start of HTTP until STDIN sends EOF
Date: Mon, 30 Oct 2017 18:38:34 +0100
On 10/30/2017 06:25 PM, Rudy via curl-library wrote:
> On 10/10/2017 02:06 AM, Erik Johansson wrote:
>>
>> On 9 October 2017 at 19:17, Rudy via curl-library
>> <curl-library_at_cool.haxx.se <mailto:curl-library_at_cool.haxx.se>> wrote:
>>
>> Goal:
>> slow_script.pl <http://slow_script.pl> | curl
>> "-FmyUpload=@-;filename=foo.txt" --wait-for-eof-for-upload
>> https://user:pass@haxx.se/upload.php
>> <https://user:pass@haxx.se/upload.php>
>>
>>
>> Or install moreutils and use sponge.
>> slow_script.pl <http://slow_script.pl> | sponge | curl ...
>
> That doesn't work as items in the pipeline are all executed
> simultaneously. (Curl starts before sponge finishes.)
>
It should work with 7.56.1 without any trick since full stdin buffering
for form fields is now re-established in the cli tool.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-10-30