Home > 414 request-uri too large

How to fix a 414 request-uri too large error?

Alton Alexander
By Alton AlexanderUpdated on June 4th, 2022

The 414 request-uri too large error code indicates that the URI requested by the client is too long for the server to process. This is usually due to the client requesting too much data or the server's URI processing rules are too strict.

Users typically search for a solution by asking about:

  • error code 414
  • 414 request-uri too large

1. Increase the size limit for the request URI

The steps to increase the size limit for the request URI are as follows:

  1. Verify that the request URI is within the maximum allowable size.
  2. Increase the size limit for the request URI using the following methods: a. Use the following IIS cmdlet to increase the limit: Set-IISRequestLimit -URI $uri -MaximumSizeBytes 256MB b. Use the following Windows PowerShell cmdlet to increase the limit: Set-Item -Path "IIS:\inetpub\wwwroot\VirtualDirectory\ -LimitRequestSizeBytes $uri -Force" -Type Unlimited
  3. Verify that the request URI has been increased to the new size limit.

2. Use a POST request instead of a GET request

  1. In your web browser, navigate to the address of the web page that you want to fix.
  2. In the address bar, type: http://www.example.com/index.php?page=login
  3. In the login form, type your username and password.
  4. Click the submit button.
  5. On the main page, click the following link to view the error message:
  6. In the message body, you'll see the following line: The request URI (http://www.example.com/index.php?page=login&username=test&password=123) is too large.
  7. In the address bar, type: POST http://www.example.com/index.php?page=login&username=test&password=123
  8. In the login form, type your username and password.
  9. Click the submit button.
  10. In the message body, you'll see the following line: The request was successfully submitted.

3. Send a smaller request URI

To send a smaller request URI in order to fix 414 request-uri too large:

  1. Navigate to the Request URI box on the main toolbar and enter the smaller request URI.
  2. Click the Send button.
  3. If the request URI has been successfully sent, the Response Status box will indicate that the request has been sent. If the request URI was not successfully sent, the Response Status box will indicate that the request could not be sent.
  4. If the request URI was successfully sent, the Response Status box will indicate that the request has been sent. If the request URI was not successfully sent, the Response Status box will indicate that the request could not be sent.

4. Use a different URI

In order to use a different URI for a request, the user would need to open up a web browser and navigate to the desired location. Once at the location, the user would need to enter in the new URI into the address bar.

5. Use a shorter URI

In order to use a shorter URI in order to fix 414 request-uri too large, you would need to use the following steps:

  1. Use a shorter hostname.
  2. Use a shorter port number.
  3. Use a shorter path name.

Still not working? maybe try one of these options:

  1. Use a different method
  2. Use a different server