cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: urls with spaces - curl is misinterpreting the %20 code

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 14 Dec 2005 10:52:09 -0800

On Wed, Dec 14, 2005 at 01:37:10PM -0500, Jason Soled wrote:
> I am using the following in a windows/dos batch file:
[...]
> Why is it interpreting the %20 as a zero instead of a space? What can I do
> about this?
>
> I am using version 7.15.1 without SSL.

DOS treats %N (where N is a digit) as a positional parameter within batch
files. Since you haven't given any parameters, the %2 is replaced by
nothing, leaving the 0. You need to escape the percents by doubling them.

>>> Dan

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