Discussion:
Recommended method to debug POST requests?
Maxim Dounin
2018-12-03 14:08:40 UTC
Permalink
Hello!
While searching for a way to debug POST requests in NGINX 1.15, I found
a link to https://github.com/openresty/echo-nginx-module (the "HTTP
Echo" module) on https://www.nginx.com/resources/wiki/modules/ .
Is HTTP Echo the recommended way to go, or are there any alternatives,
ideally methods that do not require third party addons?
Depending on what you are trying to debug:

- the $request_body variable, http://nginx.org/r/$request_body
- the $request_body_file variable, http://nginx.org/r/$request_body_file
- the client_body_in_file_only directive,
http://nginx.org/r/client_body_in_file_only

Also, the mirror module:

http://nginx.org/en/docs/http/ngx_http_mirror_module.html

and the embedded perl module:

http://nginx.org/en/docs/http/ngx_http_perl_module.html

might be also helpful.
--
Maxim Dounin
http://mdounin.ru/
Loading...