私は簡単なクエリコマンドを書こうとしています。 influxDBのhttpのDocumentaionはhereです。C#でWebClientを使用してInfluxDBを照会する方法
これは私がこれまで持っているものです。
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'");
私は、「リモートサーバーがエラー返さ。:(400)不正な要求」を取得しています。それは、urlencodeがclient.UploadStringのデータ部分の文字列と同じではないためですか?
そのコードは私にとってはうまくいかないようです。私は悪い要求400のエラーを取得しました。私は新しい質問をしましたhttps://stackoverflow.com/questions/47797900/400-bad-request-error-when-trying-to-insert-into-influxdb-enterprise-server-しかし、。私は信任状と関係があると思う – JJSSOQ