curl-users
Re: Using Curl Dict to Look up place names with more than one word
Date: Wed, 28 Aug 2013 19:09:32 +0100
denver_work_at_comcast.net wrote:
>Gisle, Dan, and others, 8-29-13 922 am
>
>Greetings. When I try:
>curl dict://dict.org/"d:Blowing Rock:gaz2k-places"
Maybe moving the opening quote would help, eg:
curl "dict://dict.org/d:Blowing Rock:gaz2k-places"
However there's already an established way to cope with spaces in URLs, so
how about
curl dict://dict.org/d:Blowing%20Rock:gaz2k-places
The "%20" means: the character whose ascii code is 20 (hexadecimal) ie 2 x
16 plus 0 = (decimal) 32... which is a space. You see %nn values in browser
urls quite often, for example for wikipedia pages:
en.wikipedia.org/wiki/Ben-Hur_(1959_film)
is actually written in URL form as:
http://en.wikipedia.org/wiki/Ben-Hur_%281959_film%29
so in this case the %28 and %29 represent the opening and closing brackets.
-- Jeremy C B Nicoll - my opinions are my own. ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-08-28