title: curl does not terminate after successful POST
body: <p>I have created some curl command to send a POST to my server where I am listening on that port for input to trigger additional action. The command is the following (Just masked the URL):</p>
  <pre><code>curl -v -H &quot;Content-Type: application/json&quot; -X POST -d &quot;{\&quot;Location\&quot;:\&quot;Some Name\&quot;,\&quot;Value\&quot;:\&quot;40%\&quot;}&quot; http://example.com:8885/
  </code></pre>
  <p>I get the following output from curl:</p>
  <blockquote>
  <p>About to connect() to example.com port 8885 (#0)</p>
  <p>Trying 5.147.XXX.XXX...</p>
  <p>Connected to example.com (5.147.XXX.XXX) port 8885 (#0)</p>
  <p>POST / HTTP/1.1</p>
  <p>User-Agent: curl/7.29.0</p>
  <p>Host: example.com:8885</p>
  <p>Accept: <em>/</em></p>
  <p>Content-Type: application/json</p>
  <p>Content-Length: 40</p>
  <p>upload completely sent off: 40 out of 40 bytes</p>
  </blockquote>
  <p>However after that curl does not close the connection. Am I doing something wrong? Also on the server I only receive the POST as soon as I hit ctrl+c.</p>