Layer7 API Management

Expand all | Collapse all

What is the (default) max header size allowed on an API Gateway?

Jump to Best Answer
  • 1.  What is the (default) max header size allowed on an API Gateway?

    Posted 03-19-2018 02:34 PM

    We are trying to integrate a vendor owned product internally, and for one of the requests it needs to make, we would like to funnel them through an API Gateway (9.2 CR06), but are unable to.

     

    The client application is getting a 400 Bad Request from the gateway before our policy executes. (Also confirmed there were no backend logs)

     

    We think it may be a header size issue because if we remove some of the headers the policy will execute and fail (due to missing headers). We've tested this by removing random headers until the total size was smaller than 8k, then again removing other random headers.

     

    The total number of headers is around 18, and the total size is often around 12k.

     

    We've looked around these forums/communities/support docs and haven't found anything that mentioned header size limitations.

     

    Any help would be appreciated!

     

    (Followup question, can the defaults be changed?)



  • 2.  Re: What is the (default) max header size allowed on an API Gateway?
    Best Answer

    Posted 03-19-2018 06:53 PM

    It should be 8K, the KB article below should help,

    API Gateway: HTTP "400 Bad Request" Error Shown Wh - CA Knowledge 



  • 3.  Re: What is the (default) max header size allowed on an API Gateway?

    Posted 03-20-2018 10:14 AM

    I think this is exactly what we were looking for, thanks!



  • 4.  Re: What is the (default) max header size allowed on an API Gateway?

    Posted 03-18-2019 11:00 AM

    Hi,

    Is this behaviour changed from 02/2018 ? In 9.3CR03, we faced some problem with a received header of 11467 bytes, at first we thought that this variable needed to be set but it seems it does work without any changes, receiving and sending.