cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to avoid expantion

From: Marco A. Cruz Quevedo <macruzq_at_gmail.com>
Date: Mon, 13 Jan 2014 17:36:06 -0600

You have to urlencode it.

http%3A%2F%2Fexample.com%2Ffile+with+%7Bstrange%7D+%28Name%29.txt

On 13/01/2014 04:19 p. m., frank ernest wrote:
> If I want to download a file with this name:
>
> http://example.com/file with {strange} (Name).txt
>
> How do I do it?
> Should I encode the spaces and brackets and braces?
> If you wanted to operate on o file in bash you would just quote 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

-------------------------------------------------------------------
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 2014-01-14