cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problems with the % symbol

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 31 Aug 2006 11:06:57 -0700

On Thu, Aug 31, 2006 at 10:16:40AM +0200, Jordi Mateu wrote:
> I pass to explain this for everyone J
>
>
>
> If you want to escape a symbol who can have problems with URL or FTP like ?%?
> or ?@? you have to do this:
>
>
>
> Imagine that your password is ?grand_at_ma? or ?grand%ma? with this you gonna have
> problems (like me)
>
> You have to put two symbols in order to escape it ?grand@@ma? or ?grand%%ma?.

That's not the general solution. Doubling a % is what you need to do to
get the Windows command processor avoid treating it as a positional parameter.
The general solution is to URL-escape problematic characters by replacing
them with % and the hex value (e.g. %25) as described. You still need to
double up the % on Windows (e.g. %%25). I'm not aware of @ being special
in the same way on Windows (but it is special in the URL).

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-08-31