CURL with parenthesized URLs

CURL requests fail when I give it URLs containing brackets (for example, in the Wikipedia link below).

sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0: `curl -g --silent --max-time 5 --location http://en.wikipedia.org/wiki/Curl_(disambiguation)' 

I looked through the manual pages, but I could not find anything suitable. Is there any way around this?

+4
source share
1 answer

use double quotes:

 curl -g --silent --max-time 5 --location "http://en.wikipedia.org/wiki/Curl_(disambiguation)" 
+10
source

Source: https://habr.com/ru/post/1380011/


All Articles