cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Use percent sign (%) as command line argument

From: Alessandro Vesely <vesely_at_tana.it>
Date: Mon, 29 Oct 2007 07:14:01 +0100

dimitri petrov wrote:
> [...]there is a percent sign in my password (which is actually the case :-) ) then my command line would be something like this:
>
> curl -u username:pass%word http://mysite.com
>
> Of course this won't work because the percent sign has a special meaning for the windows shell.
> But how can I escape it. I tried %% and also ^% but both didn't work.

This works for me (XPSP2):
curl -u username:pass^%word http://mysite.com

However, this does not:
curl -u "username:pass^%word" http://mysite.com
Received on 2007-10-29