Passing POST request through ESP8266 to InfluxDB
<p>I'm trying to transition from dweet.io to my own InfluxDB database.</p>

<p>The request i was doing to dweet.io looked like this:</p>

<pre><code>client.print(String("GET /dweet/for/nJLDK4mm3Xl6TcT8Yr06?key=7hHa9AhSGp6u684LGfya4Y&amp;temperature=") + String(t) + "&amp;humidity=" + String(h) + " HTTP/1.1\r\n" +
    "Host: " + host + "\r\n" +
    "Connection: close\r\n\r\n");
delay(10);
</code></pre>

<p>So i though i could just edit that to work on the database, i tried this:</p>

<pre><code>client.print(String("GET /write?db=mydb' --data-binary 'temperature,host=ESP826601 value=") + String(t) + "' HTTP/1.1\r\n" + 
    "Host: " + host + "\r\n" + 
    "Connection: close\r\n\r\n");
delay(10);
</code></pre>

<p>It wasn't working, it was able to connect to server, though could not make the request. My code is based on this: <a href="https://www.openhomeautomation.net/cloud-temperature-logger-esp8266/" rel="nofollow">https://www.openhomeautomation.net/cloud-temperature-logger-esp8266/</a></p>