title: Insert line in InfluxDB using CURL
body: <p>I have the following POST request which is done from C#:</p>
  
  <pre><code>POST http://192.168.123.27:8086/write?db=HWDB HTTP/1.1
  Content-Type: text/plain; charset=utf-8
  Host: 192.168.123.27:8086
  Content-Length: 97
  Expect: 100-continue
  Connection: Keep-Alive
  
  HARDWARE,CPU=1 count=91i 1456298998307783936
  HARDWARE,CPU=2 count=92i 1456298998307783936
  </code></pre>
  
  <p>I want to do the same request using CURL. I'm using the following command:</p>
  
  <pre><code>curl -i -XPOST http://192.168.123.27:8086/write?db=HWDB --data-binary "HARDWARE,CPU="1" value=91, CPU="2" value=92 1422568543702900257"
  </code></pre>
  
  <p>This will return the error:</p>
  
  <pre><code>{"error":"unable to parse 'HARDWARE,CPU=1 value=91i, CPU=2 value=92i 1422568543702900257': invalid field format"}
  </code></pre>
  
  <p>How should I change the CURL command to work? I'm running CURL from Windows, if I use:</p>
  
  <pre><code>curl -i -XPOST http://192.168.123.27:8086/write?db=HWDB --data-binary "HARDWARE,CPU=1 value=91"
  </code></pre>
  
  <p>data is correctly inserted in DB. Also tried to insert from file using the example from InfluxDB documentation:</p>
  
  <pre><code>curl -i -XPOST http://192.168.123.27:8086/write?db=HDWB --data-binary @data.txt
  </code></pre>
  
  <p>This will return:</p>
  
  <pre><code>{"error":"partial write:\nunable to parse 'cpu_load_short,host=server02 value=0.
  67\r': invalid number\nunable to parse    'cpu_load_short,host=server02,region=us-w
  est value=0.55 1422568543702900257\r': bad timestamp"}
  </code></pre>
  
  <p>Content of data.txt:</p>
  
  <pre><code>cpu_load_short,host=server02 value=0.67
  cpu_load_short,host=server02,region=us-west value=0.55 1422568543702900257
  cpu_load_short,direction=in,host=server01,region=us-west value=2.0 1422568543702900257
  </code></pre>