title: how to GET json query results from Windows command terminal
body: <p>I have a json query that I am trying to pass through the command line</p>
  
  <p>I have tried replacing outer single quotes with double quotes, but still shows me error</p>
  
  <pre><code>curl -XGET "http://localhost:9200/honda/_search?pretty" -H 'Content-Type: 
  application/json' -d “@{“query”:{"match":{"color":"silver"}}}”
  </code></pre>
  
  <p>Expected: Documents that matches field:silver
  Actual Error: Warning: 
      Couldn't read data from file "", this makes an empty POST</p>
  
  <pre><code>THEN DISPLAYS MY ALL MY DOCUMENTS:
  
      {
      "_index" : "honda",
      "_type" : "_doc",
      "_id" : "234",
      "_score" : 1.0,
      "_source" : {
        "model" : "Accord EX",
        "price" : 28000,
        "color" : "red",
        "num_doors" : 4,
        "weight" : "9000lbs"
      }
    }.................................
  curl: (6) Could not resolve host: application
  {"query":{"match":{"color":"silver"}}}"
  The filename, directory name, or volume label syntax is incorrect.
  </code></pre>