cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Using Curl Dict to Look up place names with more than one word

From: Robert Lefebure <robert.r.lefebure_at_gmail.com>
Date: Thu, 29 Aug 2013 09:06:59 -0400

or curl dict://dict.org/d:Blowing\
Rock:gaz2k-places<http://dict.org/d:Blowing%20Rock:gaz2k-places>

On Wed, Aug 28, 2013 at 2:09 PM, Jeremy Nicoll - ml curl users <
jn.ml.crlu.36_at_letterboxes.org> wrote:

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

-------------------------------------------------------------------
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.html
Received on 2013-08-29