title: Can't send post request with cUrl when reading data from file
body: <p>Hi I have a problem with sending using post command a jSon file.
  I’m using curl in version 7.54.0 on windows.
  I tried to execute command :</p>
  
  <pre><code>E:\Pobrane Na Big Data\cURL\curl-7.54.0-win64-mingw\bin&gt;curl -v -X POST 
  http://my.host.ip: 8083/api/kpi -H "content-type: application/json" -d 
  @R.txt
  </code></pre>
  
  <p>And I get response:</p>
  
  <pre><code>Note: Unnecessary use of -X or --request, POST is already inferred.
  *   Trying my.host.ip...
  * TCP_NODELAY set
  * Connected to my.host.ip (my.host.ip: 8083) port 8083 (#0)
  &gt; POST /api/kpi HTTP/1.1
  &gt; Host: my.host.ip: 8083
  &gt; User-Agent: curl/7.54.0
  &gt; Accept: */*
  &gt; content-type: application/json
  &gt; Content-Length: 1398862
  &gt; Expect: 100-continue
  &gt;
  &lt; HTTP/1.1 100 Continue
  * We are completely uploaded and fine
  &lt; HTTP/1.1 200 OK
  &lt; Cache-Control: no-cache
  &lt; Pragma: no-cache
  &lt; Content-Type: application/json; charset=utf-8
  &lt; Expires: -1
  &lt; Server: Microsoft-IIS/8.5
  &lt; X-AspNet-Version: 4.0.30319
  &lt; X-Powered-By: ASP.NET
  &lt; Date: Wed, 05 Jul 2017 09:26:11 GMT
  &lt; Content-Length: 193
  &lt;
  {"StatusCode":400,"StatusDescription":"System.NullReferenceException: Object ref
  erence not set to an instance of an object.\r\n   at KPI.WebApi.Controllers.KpiC
  ontroller.&lt;Post&gt;d__2.MoveNext()"}* Connection #0 to host 10.23.2.124 left intact
  </code></pre>
  
  <p>What I would like to add,  is that when I’m tried to send the same file via postman there is no problem. File is successfully loaded via rest to DB. 
  Also when I tried to put data directly into curl command, instead of using file, it successfully loaded data to DB. 
  Any suggestion how to send this json file to rest with curl?</p>