HTTP Status 400 – Bad Request

HTTP Status 400 – Bad Request

229
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:05 PM


Symptom


Remote Access via HTML5GW displays HTTP Status 400 - Bad Request in the browser:
image.png


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:

  1. 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

  2. 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.

  3. 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


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001L5jCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail