cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Upload parameters AND data from stdin (-K - -T-)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 29 Aug 2003 14:12:02 +0200 (CEST)

On Wed, 20 Aug 2003, Rich Gray wrote:

[sorry it has taken a while to respond]

> While the subject of command line options is floating around, I'd like to
> propose that curl be able to accept parameters and upload data via stdin.
> A test case might be something like:
>
> ( echo -q
> echo -s
> echo -P -
> echo -u id:password
> echo -T -
> echo --url ftp://site/path
> echo --end-parms
> cat uploadfile ) | curl -K -
>
> This avoids any sensitive data on the command line.

While you of course are 100% correct, I fail to see why curl has to do all
this by itself. This kind of magic will only be attempted by people who are
using unix(-like) operating systems and if you sit in front of a unix box, it
would be dead easy to write a wrapper script around curl that hides all the
arguments quite nicely already, right?

The same goes for your idea of being able to read from specific file handle
numbers.

I don't think adding these features would benefit more than a few unix hackers
(most likely wearing beards! ;-O), who already know how to overcome the
problems they fix.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-08-29