cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Is there a way to mask password and login

From: Doug McNutt <douglist_at_macnauchtan.com>
Date: Mon, 12 Dec 2005 09:12:25 -0700

At 16:51 +0100 12/12/05, Cyril wrote:
>If I use curl with -u login:password option, we can have access to
>these login and password by grepping processes.
>Is there a way to put those information in a file in order to not have
>login and password in clear on the command line?
>I want to have a solution on UNIX and Windows.
>Thank's.

On UNIX, at least, check out the -n option on the command line. It
accesses $HOME/.netrc where passwords, usernames, and accounts can be
stored behind 600 permission codes.

I have been using the same file read by simple perl script to provide
HTTP passwords that have to be massaged into POST requests.

-- 
--> Science is the business of discovering and codifying the rules 
and methods employed by the Intelligent Designer. Religions provide 
myths to mollify the anxiety experienced by those who choose not to 
participate. <--
Received on 2005-12-12