Re: Log headers for failing request
Mark Thomas <[email protected]> Fri, 5 Jun 2026 16:22:19 +0100
| Newsgroups | gmane.comp.jakarta.tomcat.user |
|---|---|
| Message-ID | <[email protected]> |
On 05/06/2026 13:56, Harri Pesonen via users wrote: > How to log HTTP headers for POST request that fails with 400 Bad Request so that the request does not go to application at all? > It can be seen in access log only. > I would like to see the headers or the full request. > I suspect that client sends content-type somehow incorrectly. > There is nothing in catalina log. Tomcat version? HTTP version? Try adding -Dorg.apache.juli.logging.UserDataHelper.CONFIG=INFO_ALL to JAVA_OPTS. Mark