HTTP Status 400 – Bad Request
Symptom
Remote Access via HTML5GW displays HTTP Status 400 - Bad Request in the browser:
Environment
Privilege Cloud PSM;Privileged Session Management (PSM) Experiencing this problem when connecting to target machine via HTML5GW
Cause
The error you're seeing is an HTTP 400 - Bad Request error with the specific message "Request header is too large." This error is being thrown by Apache Tomcat,
Possible causes:
-
Request Header is too Large: HTTP headers have a maximum size limit. If a request contains headers that exceed this limit, the server might reject it with the "Request header is too large" error. This can be caused by Large Cookies: If your application or gateway uses cookies, and the user has accumulated a large number of them or very large individual cookies, this can cause the headers to grow too large
-
Apache Tomcat Specifics: Apache Tomcat has a limit for the HTTP request header size. By default, this limit is set to 8 KB. If a request header exceeds this limit, Tomcat will reject it with the aforementioned error.
-
Transient Issues: If the problem resolved itself, it could have been a transient issue. Maybe there was a temporary misconfiguration, or a particular session accumulated too much data but was later cleared.
Resolution
Attempt to resolve by:
A) Clearing browser cookies and cache
B) Increasing the header size limit in Tomcat:
You can adjust this limit in the Tomcat configuration if needed:
see maxHttpHeaderSize in https://tomcat.apache.org/tomcat-9.0-doc/config/http.html