title: Really logging the POST request body (instead of "-") with nginx
body: <p>I'm trying to log POST body, and add <code>$request_body</code> to the <code>log_format</code> in <code>http</code> clause, but the <code>access_log</code> command just prints "-" as the body after I send POST request using:</p>
  
  <pre><code>curl -d name=xxxx myip/my_location
  </code></pre>
  
  <p>My log_format (in <code>http</code> clause):  </p>
  
  <pre><code>log_format client '$remote_addr - $remote_user $request_time $upstream_response_time '
                    '[$time_local] "$request" $status $body_bytes_sent $request_body "$http_referer" '
                    '"$http_user_agent" "$http_x_forwarded_for"';
  </code></pre>
  
  <p>My location definition(in server clause):  </p>
  
  <pre><code>location = /c.gif {  
    empty_gif;  
    access_log logs/uaa_access.log client;  
  }
  </code></pre>
  
  <p>How can I print the actual POST data from curl?</p>