cURL / Mailing Lists / curl-users / Single Mail


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

From: Alessandro Vesely <>
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
> 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

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