在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