title: CURL: (52) Empty reply from server
body: <p>When trying to do the following command i'm getting this error:</p>
  
  <pre><code>curl -i -v -X POST -H Accept:*/* -H Cont
  ent-Type:application/json -d "{user:{firstname:"Jane",lastname:"Smith"" -L "http
  ://site.com/test.php"
  </code></pre>
  
  <hr>
  
  <pre><code>* timeout on name lookup is not supported
  * About to connect() to site.com port 80 (#0)
  *   Trying 38.102.226.21...
  * connected
  * Connected to site.com (38.102.226.21) port 80 (#0)
  &gt; POST /test.php HTTP/1.1
  &gt; User-Agent: curl/7.26.0
  &gt; Host: site.com
  &gt; Accept:*/*
  &gt; Content-Type:application/json
  &gt; Content-Length: 36
  &gt;
  * upload completely sent off: 36 out of 36 bytes
  * Empty reply from server
  * Connection #0 to host site.com left intact curl: (52) Empty reply from server
  * Closing connection #0
  </code></pre>
  
  <p>test.php simply does: var_dump($_POST);</p>
  
  <p>What can be the cause of it? The request is not reaching my index.php at all which receives all the traffic, so this can't have anything to do with my php code right?</p>
  
  <p>Any ideas?</p>