title: Solr query via CURL - [globbing] bad range in column
body: <p>I have a core in Solr named <code>test</code>. I have ingested 2 nested JSON documents in it. They are as follows:</p>
  
  <pre><code>{"id":1, "path":"1.parent", "_childDocuments_":{"path":"2.parent.child"}}
  </code></pre>
  
  <p>And </p>
  
  <pre><code>{"id":2, "path":"1.parent", "_childDocuments_":{"path":"2.parent.child"}}
  </code></pre>
  
  <p>When I query <code>test</code> core via browser for response in a parent-child relationship I correct repsonse:</p>
  
  <pre><code>http://localhost:8983/solr/test/select?fl=*,[child%20parentFilter=path:1.parent%20childFilter=path:2.parent.child]&amp;indent=on&amp;q={!parent%20which=%22path:1.parent%22}&amp;wt=json
  
  {
    "responseHeader":{
      "status":0,
      "QTime":2,
      "params":{
        "q":"{!parent which=\"path:1.parent\"}",
        "indent":"on",
        "fl":"*,[child parentFilter=path:1.parent childFilter=path:2.parent.child]",
        "wt":"json"}},
    "response":{"numFound":2,"start":0,"docs":[
        {
          "id":"1",
          "path":["1.parent"],
          "_childDocuments_.path":["2.parent.child"],
          "_version_":1565913168462479360},
        {
          "id":"2",
          "path":["1.parent"],
          "_childDocuments_.path":["2.parent.child"],
          "_version_":1565913171789611008}]
    }}
  </code></pre>
  
  <p>But when I try to run same query via <code>curl</code> it shows error:</p>
  
  <pre><code>$ curl 'http://localhost:8983/solr/test/select?fl=*,[child%20parentFilter=path:1.parent%20childFilter=path:2.parent.child]&amp;indent=on&amp;q={!parent%20which=%22path:1.parent%22}&amp;wt=json'
  curl: (3) [globbing] bad range in column 46
  </code></pre>
  
  <p>I am not able to understand via. Although, I can understand that <code>curl</code> request is giving error on <code>column 46</code> which is a special character <code>[</code> in the <code>http</code> request. But, then how it working in browser and how can we make this request working via <code>curl</code> ?</p>