Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 2009 15:25:52 +0200
From:      chris@chrullrich.net
To:        freebsd-questions@freebsd.org
Subject:   Problem with cURL and pipes
Message-ID:  <5cws4t9wdb.fsf@chrullrich.net>

next in thread | raw e-mail | index | archive | help
Hello all,

there seems to be something wrong with sending data through pipes.

I'm trying to upload files to an FTP server by piping them to
cURL:

These work:

- curl < file-to-send ...
- cat file-to-send | curl ...

These don't:

- gzip < file-to-send | curl ...
- bzip2 < file-to-send | curl ...
- cat file-to-send | rev | curl ...

The compressed input in this case is about 7 MB, but it only
sends up to 2 MB of that. Sometimes nothing, more often
something in between.

This is on 7-STABLE from this morning, but the same problem
existed on 7-STABLE from ten months ago (I upgraded to see
if that would fix it).

This has worked flawlessly for several months, then started
failing last week. Any ideas what might be the reason?

Thanks for your help,

-- 
Christian Ullrich




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5cws4t9wdb.fsf>