title: how to curl with query string parameter in format of "filter[name]=foo"
body: <p>Here is an api on my server:</p>
  
  <p><a href="https://server/api/v1/products?filter[name]=foo" rel="nofollow">https://server/api/v1/products?filter[name]=foo</a></p>
  
  <p>this works well when I access it via browser, and it works well with the following two methods:</p>
  
  <pre><code>$ cat /tmp/x
  {"filter": {"name": "foo"}}
  
  $ curl -X GET -H 'Accept: application/json' -k -s --negotiate -u : -H 'Content-Type: application/json' -d "@/tmp/x" https://server/api/v1/products
  {"name": "foo", ...}
  
  $ curl -X GET -H 'Accept: application/json' -k -s --negotiate -u : -d "filter[name]=foo" https://server/api/v1/products
  {"name": "foo", ...}
  </code></pre>
  
  <p>Now I'm trying to do it with:</p>
  
  <pre><code>$ curl -X GET -H 'Accept: application/json' -k -s --negotiate -u : https://server/api/v1/products?filter[name]=foo
  $ echo $?
  3
  </code></pre>
  
  <p>it fails with error code 3, which stands for "URL malformed. The syntax was not correct."</p>
  
  <p>How should I specify the query string parameters in the url?</p>