'Azure Web App HTTP Response size limitations?
We have an Web API hosted on Azure at the moment, when we get a large response back (250MB+) it does not send the response back but the status code is 200. On our local we get the JSON response back successfully, we believe there is a response limit set on Azure.
If possible how can we increase this limit?
Solution 1:[1]
If possible how can we increase this limit?
You can try to add this code in your web.config file to increase the size of the response:
<configuration>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="50000000"/>
</webServices>
</scripting>
</system.web.extensions>
</configuration>
Response does not have any limit. We can limit the response size by adding a parameter called as Content-Length into the response header.
To increase request size you put the below code into web.config:
<system.web>
<httpRuntime maxRequestLength="2147483647" />
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | RajkumarMamidiChettu-MT |
