Apache Request URI Too Large error resolution

  • 2020-05-09 19:48:12
  • OfStack


Request-URI Too Large
The requested URL's length exceeds the capacity limit for this server.

The reasons for the above Request-URI Too Large problem are as follows:

The error of apache is that the length of URL exceeds the limit. The length limit of URL is influenced by the browser and server. Common IE is 2083, Firefox is 65,536 (measured 8182), opera is 4050, Netscape is 8192, etc. The limit for local apache servers is 8192.

In addition, it is said that the http protocol does not limit the length of URL? Sending an GET request using a browser is limited by the length of the browser URL, and GET requests that do not use a browser are also limited on the server side. The specific limit length can be configured according to the processing capacity of the server.

The http protocol allows you to send data in bulk on request through UDP and POST just because you're going through a stream, chunking multiple UDP packets and then reading each one.

So the wrong way to do this is to reduce the URL address to both the browser and the server or to replace it with an POST request...

GET is highly recommended!


Related articles: