cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: quoting password

From: Doug McNutt <douglist_at_macnauchtan.com>
Date: Thu, 29 Sep 2005 11:15:18 -0600

At 18:58 +0200 9/29/05, Kjell Ericson wrote:
>Escaping is the solution, but you need to URL-escape it.
> curl 'ftp://user:abc%2fdef%2aghi@host/file.txt'

Also have a look at the -n option if the cURL tool. It will allow you to store the passwords in $HOME/.netrc which you have to create. Note the dot in .netrc. If you make that file owner only the security is not so bad and might actually be better than having passwords directly in scripts.

-- 
--> From the U S of A, the only socialist country that refuses to admit it. <--
Received on 2005-09-29