title: CURL receive "empty reply from server", but browser receive response. Why?
body: <p>I set up rest-api server. (Django 1.11 + NGINX + Gunicorn + Postgresql 9.6)</p>
  
  <p>For testing, I developed simple API. Get request URL /test, then respond "success" string. In web browser, it worked well.</p>
  
  <p>But when I request same url with CURL, I receive "curl: (52) Empty reply from server". I tried curl on other remote server, and I tried curl <a href="http://127.0.0.1/test" rel="nofollow noreferrer">http://127.0.0.1/test</a> on that server. Both didn't not work. I received "curl: (52) Empty reply from server". </p>
  
  <p>Why it work in web browser, and it not work in CURL? Where should I check? NGIMX? Django? I checked firewell. </p>
  
  <p>Sorry for poor english. Thanks!</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I tried the following, </p>
  
  <pre><code>$ curl -vv http://127.0.0.1/test/
  *   Trying 127.0.0.1...
  * TCP_NODELAY set
  * Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
  &gt; GET /test/ HTTP/1.1
  &gt; Host: 127.0.0.1
  &gt; User-Agent: curl/7.58.0
  &gt; Accept: */*
  &gt;
  * Empty reply from server
  * Connection #0 to host 127.0.0.1 left intact
  curl: (52) Empty reply from server
  </code></pre>