On 09/03/2023 20:59, Seth Mayers wrote:
I am running Apache Tomcat Version 9.0.48.

If I post a transaction that is very large, I get the "414; The request URL
is too long".

I have tried adding a bunch of parameters to my server.xml file but none of
them seem to work.  I have tried:
maxHttpHeaderSize="262144"
maxSavePostSize="-1"
maxPostSize="-1"
maxHttpRequestHeaderSize="262144"

I have someone that was able to resolve the same issue running Tomcat 8.5
but his solution (maxhttpheadersize) did not work for me.  Did something
change between 8.5 and 9.0.48 that might affect things?  Is
something involved beyond just server.xml?

Tomcat 9.0.x never returns a 414 status code. Wherever that status code is originating, it isn't Tomcat. It must be in the application or in a component before Tomcat.

Mark




SAMPLE POST (the one that fails is FAR larger than this)

http://servername/gatewayAdminTest/GatewayClient?OutputType=1&InputType=1&Data=<request
name="CreateOrder">
<Orders>
       <Order>
          <OrderHeader>
             <WebTransactionType>LSF</WebTransactionType>
             <CustomerID>010000092390</CustomerID>
             <WarehouseId>02</WarehouseId>
             <OrderSource />
             <PONumber>test_promo_freeProduct</PONumber>
             <CarrierCode>DROP</CarrierCode>
             <ReqShipDate />
             <ShipToNumber />
             <WebUserID>010000092391</WebUserID>
             <WebOrderID>WEB001232</WebOrderID>
             <OrderType>O</OrderType>
          </OrderHeader>
          <OrderDetail>
             <LineItemInfo>
                <ItemNumber>39012621</ItemNumber>
                <OrderQty>1.00000</OrderQty>
                <UnitOfMeasure>BAG</UnitOfMeasure>
             </LineItemInfo>
          </OrderDetail>
       </Order>
    </Orders>
</request>
&SubscriberID=xxx
--


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to