cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Using hexadecimals in URL

From: Doug McNutt <douglist_at_macnauchtan.com>
Date: Mon, 9 Dec 2013 13:38:26 -0700

At 13:05 -0500 11/20/13, frank ernest wrote:
> >> Will curl accept hexadecimals in URL, or will it interpret them literally?
>>> Example: main%20v1_1b.pdf
>>
>>Are you talking about when the -O option is used or something else? The -O
>>dscription was extended just the other day to mention it DOES NOT url decode
>>the file name part. (Neither does -J but that could be argued to be a bug.)
>
>I'm talking:
>
>curl -o mainv1_1b.pdf http://www.example.com/main%20v1_1b.pdf
>
>Where the url nexpands into:
>
>http://www.example.com/main v1_1b.pdf
>
>Will curl do the expantion/interpitation of the hexadecimals in the url?

Perhaps you need to enclose the entire URL in parentheses as you would if the %20 was really a space.

Is there anything in the way before curl even sees the request. Shells and other pass-thru command handlers sometimes to that.

-- 
--> From the U S of A, the only socialist country that refuses to admit it. <--
-------------------------------------------------------------------
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-12-09