在Linux命令行輸入
curl 'http://test.com/interface/task?dd=1&json=[]'
出現錯誤:
curl: (3) [globbing] illegal character in range specification at pos 43
遇到這種情況直接Google,baidu是解決不了的。這不有了,
加個-g或--globoff選項就ok了
curl -g 'http://test.com/interface/task?dd=1&json=[]'
搞定
參考網址:http://stackoverflow.com/questions/8333920/passing-a-url-with-brackets-to-curl