cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Kjell Ericson <Kjell.Ericson_at_haxx.se>
Date: Mon, 29 Oct 2007 07:18:57 +0100 (CET)

On Mon, 29 Oct 2007, dimitri petrov wrote:

> 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.

You shall escape it to %25 (ascii code for %).

Same goes with many other chars (like if you have ":" in username).

  // Kjell
Received on 2007-10-29