Tomcat log request options

Is there a way to register request parameters in Tomcat?

If so, how?

Thank.

+3
source share
2 answers

Tomcat has RequestDumperFilter, which can be used to reset the request, including parameters.

Alternatively, if you prefer to change the server configuration rather than webapp, there is RequestDumperValve.

Both are described in the Apache Tomcat Configuration Link .

+5
source

@mdma is correct. However, care must be taken if your webapp depends on the proper handling of UTF-8 request parameters in the URL.

- Tomcat UTF-8 URL- - webapp . , - . , Tomcat ( RequestDumperValve) , webapp. Latin-1... .

Tomcat.

+2

Source: https://habr.com/ru/post/1747602/


All Articles