How do I see the POST payload sent from Tomcat

2023-03-16 Thread Aditya Kumar
I have a Java application running under Tomcat 9. One component of this application is OpenID authentication, in which my application is a relying party. It sends a POST request to https://login.microsoftonline.com, but in one scenario I'm getting an error back from Microsoft. I need to see

Apache Tomcat wire logging does not show POST data payload

2023-03-09 Thread Aditya Kumar
I edited my log4j2.xml to include these lines: Now in my defined serverlog I see the http wire traffic I am after. However there is one problem. For POST requests from my Tomcat server I can only see request/response HTTP headers. I cannot see the POST data payload. Is there a way to get

Re: Maximum header size in Tomcat 9

2022-05-25 Thread Aditya Kumar
Thanks! Sorry I misread that article. So I suppose it's the same for maxHttpRequestHeaderSize and maxHttpResponseHeaderSize? On Wed, May 25, 2022 at 10:45 AM Mark Thomas wrote: > On 25/05/2022 10:33, Aditya Kumar wrote: > > I'm sorry I'm not sure what you mean by Integer.MAX_VALUE?

Re: Maximum header size in Tomcat 9

2022-05-25 Thread Aditya Kumar
022 at 10:19 AM Mark Thomas wrote: > On 25/05/2022 09:51, Aditya Kumar wrote: > > Hi > > > > I'm using Tomcat 9.0.46 and I want to know what is the maximum possible > > value for maxHttpHeaderSize > > Integer.MAX_VALUE > > > I have Tomcat setup using kerberos

Maximum header size in Tomcat 9

2022-05-25 Thread Aditya Kumar
Hi I'm using Tomcat 9.0.46 and I want to know what is the maximum possible value for maxHttpHeaderSize I have Tomcat setup using kerberos authentication and for some users the Authorisation header is too large (too many AD groups). I have seen various articles when googling but I want something

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Aditya Kumar
, 2020 at 1:20 PM Mark Thomas wrote: > On 31/03/2020 11:20, Aditya Kumar wrote: > > Tomcat 9.0.30 on Windows Server 2012 / Java 1.8 > > > > I've noticed on a freshly installed version of tomcat 9, upon startup > there > > are several connections to and fro

Why does Tomcat open connections on localhost?

2020-03-31 Thread Aditya Kumar
Tomcat 9.0.30 on Windows Server 2012 / Java 1.8 I've noticed on a freshly installed version of tomcat 9, upon startup there are several connections to and from localhost on different ports For example on my tomcat server there are 4 connections to and from localhost (output from netstat) TCP