On Friday, December 2, 2016 at 12:44:18 PM UTC-8, Ryan McKinley wrote: > Influx 1.1 added the ability to get the response as CSV -- this is great! > > > curl -H "Accept: application/csv" -G 'http://localhost:8086/query [...] > > > > > Is there any way to make this request without chaining the Accept header? I > am trying to build an HTML form that downloads directly from Influx, but can > only support this with some funky javascript hacks. > > > > > thanks > ryan
Currently the Accept header is the only way to get CSV output [1]. Are you sure you want Javascript clients connecting directly to InfluxDB? You could possibly set up a reverse proxy or a custom application in front of InfluxDB to add the header. [1] https://github.com/influxdata/influxdb/blob/1677aff928670014cd801645ee16759fc066cc25/services/httpd/response_writer.go#L27-L30 -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/433d0ffc-4aeb-4619-ba02-5d87a67619a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
