What is the limit of the 'HTTP Request Header Field' for Azure services (APIM, App Service, Az Function etc.)

Jaydeep Suryawanshi 46 Reputation points
2023-08-21T07:11:54.1166667+00:00

Hi Team,

I am using Azure app service, APIM, Azure functions etc. and due to some use case, I need to pass the request header field with 20kb size. However, as per the documentations, below are the default size as per web server.

  • Apache - 8K
  • Nginx - 4K-8K
  • IIS - 8K-16K

I want to know the limit of 'HTTP Request header field size' for azure resources (e.g. azure app service, APIM, Azure functions etc.) for Windows as well as Linux operating system & how can we increase it?

Thanks in advance.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,446 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 29,261 Reputation points
    2023-08-24T07:02:42.7433333+00:00

    Hi Jaydeep Suryawanshi Thanks for your patience the limit of Request header field size for APIM is 64K and it can't be increased further.

    Please let me know if you have any further queries.

    Please ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    3 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ben Gimblett 4,560 Reputation points Microsoft Employee
    2023-08-21T12:02:08.33+00:00

    Hi thanks for the question

    App Service/Functions
    The request header length is controlled by the app service front ends (so irrespective of the backend hosting choice which could be container, windows, linux etc). this is a hard limit of 64KB (it cannot be changed)
    This includes app service hosted functions using an http trigger.

    API Management
    I dont know about Azure API Management, I can ask and revert here.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.