cURL / Mailing Lists / curl-users / Single Mail

curl-users

urls with spaces - curl is misinterpreting the %20 code

From: Jason Soled <jsoled_at_broadware.com>
Date: Wed, 14 Dec 2005 13:37:10 -0500

I am using the following in a windows/dos batch file:
curl "
<http://imseast.broadware.com:8086/hydra.bwt?command=multiset&key=clients/so
led1&clear=true&name=dwell>
http://imseast.broadware.com:8086/hydra.bwt?command=multiset&key=clients/sol
ed1&clear=true&name=dwell time&value=1000&name=template&value=1x1&name=fixed
windows/1&value=BW_Herndon_Hallway&name=source rotation/force rotation"
 
I have tried replacing the spaces with %20 as in:
curl "
<http://imseast.broadware.com:8086/hydra.bwt?command=multiset&key=clients/so
led1&clear=true&name=dwell%20time&value=1000&name=template&value=1x1&name=fi
xed%20windows/1&value=BW_Herndon_Hallway&name=source%20rotation/force%20rota
tion>
http://imseast.broadware.com:8086/hydra.bwt?command=multiset&key=clients/sol
ed1&clear=true&name=dwell%20time&value=1000&name=template&value=1x1&name=fix
ed%20windows/1&value=BW_Herndon_Hallway&name=source%20rotation/force%20rotat
ion"
 
But when I go into my DOS window what I see is:
curl "
<http://imseast.broadware.com:8086/hydra.bwt?command=multiset&key=clients/so
led1&clear=true&name=dwell0time&value=1000&name=template&value=1x1&name=fixe
d0windows/1&value=BW_Herndon_Hallway&name=source0rotation/force0rotation>
http://imseast.broadware.com:8086/hydra.bwt?command=multiset&key=clients/sol
ed1&clear=true&name=dwell0time&value=1000&name=template&value=1x1&name=fixed
0windows/1&value=BW_Herndon_Hallway&name=source0rotation/force0rotation"
 
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.
 
thanks!
 
_______________
Jason Soled
Systems Engineer
BroadWare Technologies
703-788-6663 (direct)
703-880-7245 (fax)
301-346-7859 (mobile)
 <mailto:jsoled_at_broadware.com> jsoled_at_broadware.com
 <http://www.broadware.com/> www.broadware.com

This message (including any attachments) is for the sole use of the intended
recipients(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure, or distribution is prohibited. If you
are not the intended recipient, please contact the sender and delete all
copies.

 
Received on 2005-12-14