title: InfluxDB: Query data from measurement via REST API
body: <p>I am using the REST API of InfluxDB</p>
  <pre><code>curl -s -XPOST -G influxdb_url:8086/query?pretty=true --data-urlencode &quot;db=metrics&quot; --data-urlencode &quot;q=SHOW MEASUREMENTS WITH MEASUREMENT=~/a.b-c*/&quot;
  </code></pre>
  <p>to retrieve the measurements available</p>
  <pre><code>    {
      &quot;results&quot;: [
          {
              &quot;statement_id&quot;: 0,
              &quot;series&quot;: [
                  {
                      &quot;name&quot;: &quot;measurements&quot;,
                      &quot;columns&quot;: [
                          &quot;name&quot;
                      ],
                      &quot;values&quot;: [
                          [
                              &quot;a.b-c&quot;
                          ],
                          [
                              &quot;a.b-cd&quot;
                          ],
                          [
                              &quot;a.b-cde&quot;
                          ],
                          [
                              &quot;a.b-cdfg&quot;
                          ]
                      ]
                  }
              ]
          }
      ]
  }
  </code></pre>
  <p>and then I trying to select all the data from one of them</p>
  <pre><code>curl -s -XPOST -G influxdb_url:8086/query?pretty=true --data-urlencode &quot;db=metrics&quot; --data-urlencode &quot;q=SELECT * FROM &quot;a.b-c&quot;&quot;
  </code></pre>
  <p>and I am getting this error</p>
  <pre><code>{
      &quot;error&quot;: &quot;error parsing query: found -, expected ; at line 1, char 18&quot;
  }
  </code></pre>
  <p>The exact same query works if I login the Influx instance</p>
  <pre><code>select * from &quot;a.b-c&quot;
  </code></pre>