curl-users
Re: quoting password
From: Kjell Ericson <Kjell.Ericson_at_haxx.se>
Date: Thu, 29 Sep 2005 18:58:38 +0200 (CEST)
Date: Thu, 29 Sep 2005 18:58:38 +0200 (CEST)
On Thu, 29 Sep 2005, Michael wrote:
> but if I use
> curl "ftp://user:abc\/def*ghi@host/file.txt"
> the command hangs.
Hanging is a very bad error message...
Escaping is the solution, but you need to URL-escape it.
curl 'ftp://user:abc%2fdef%2aghi@host/file.txt'
I would also suggest using ' instead of " so the shell doesn't mingle your
input.
// Kjell
Received on 2005-09-29