in reply to How to control input of an external program?

What's wrong with specifying the user/password on the command line? Save yourself the pain. From the man page:

-u/--user <user:password>

Replies are listed 'Best First'.
Re^2: How to control input of an external program?
by klactose (Initiate) on Nov 09, 2009 at 19:47 UTC
    that will work for this specific instance, but what about in general?
      You already have the general solution. (Send the input to the program's STDIN.) You're asking for a specific solution. (For some reason, curl reads the password from the tty, not STDIN.)