<div dir="ltr">Hi,<div><br></div><div>Trying adding this directive to your location: </div><div> echo_read_request_body;</div><div><br></div><div>It needs this 3rd party module though: <a href="http://wiki.nginx.org/HttpEchoModule#echo_read_request_body">http://wiki.nginx.org/HttpEchoModule#echo_read_request_body</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 14, 2013 at 7:23 AM, shawnxzhou <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to use $request_body but get '-' in my log file for this field<br>
here is my configure file, is there sth wrong or the $request_body has other<br>
deps to work?<br>
<br>
http {<br>
log_format client '$remote_addr - $remote_user $request_time<br>
$upstream_response_time '<br>
'[$time_local] "$request" $status $body_bytes_sent<br>
$request_body "$http_referer" '<br>
'"$http_user_agent" "$http_x_forwarded_for"';<br>
......<br>
server {<br>
......<br>
location = /c.gif {<br>
empty_gif;<br>
access_log logs/uaa_access.log client;<br>
}<br>
......<br>
}<br>
}<br>
<br>
I'm using linux command 'curl -d name=xxxx myip/my_location' to fire a POST<br>
request, and just get '-' for $request_body field.<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,240828,240828#msg-240828" target="_blank">http://forum.nginx.org/read.php?2,240828,240828#msg-240828</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>