'm trying to write a simple query command. Documentaion for http for influxDB is here.
This is what I have so far:
WebClient client = new WebClient(); client.Credentials = new NetworkCredential("root", "root"); var reponse = client.UploadString("http://localhost:8080/query", "db=dbName\"q = SELECT \"something\" FROM \"tableName\" WHERE \"tag\"='valueTag'");
I’m getting “The remote server returned an error: (400) Bad Request.”. Is it because the urlencode is not the same as putting as the string for the data part of client.UploadString? I think something with my query is messed up.