Solved

Increase size of permitted URI

Posted on 2016-08-11
4
40 Views
Last Modified: 2016-08-18
We are entering a comment into a text box on a web page and are receiving an error message that the text is too long.

Request-URI Too Large

The requested URL's length exceeds the capacity limit for this server.
Apache/2.2.3 (CentOS) Server at www.mytesting.com Port 443

Can anyone tell me what I can do to permit the URI to accept a longer string (somewhere about 3000 characters).  We are using Tomcat 7.0.59
0
Comment
Question by:Nemetona
4 Comments
 
LVL 17

Accepted Solution

by:
contactkarthi earned 250 total points
ID: 41752563
You can edit tomcat/conf/server.xml's HTTP/1.1 Connector entry, and add a maxHttpHeaderSize="65536" to increase from the default maximum of 8K or so, to 64K. I imagine that you could up this number as high as necessary, but 64K suffices for my needs at the moment so I haven't tried it.

<Connector port="8080" maxHttpHeaderSize="65536" protocol="HTTP/1.1" ... />

Got it from here
1
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 125 total points
ID: 41752696
It sounds like your form is using GET to submit the data.  GET requests can be limited to as little as 2083 bytes in some browsers.  POST request are essentially unlimited in size.  Note that this is a browser limitation.  Changing the acceptable size on the server will not change it.  Only changing your form and the page on the server to use POST will change it.
1
 
LVL 23

Assisted Solution

by:Dr. Klahn
Dr. Klahn earned 125 total points
ID: 41752815
You may want to look at the following Apache configuration control directives:

In httpd.conf:  LimitRequestBody:      Sets maximum length of an entire request
In httpd.conf:  LimitRequestFieldSize: Sets maximum length of a field
In httpd.conf:  LimitRequestLine:      Sets maximum length of request line within body

Open in new window

1
 

Author Comment

by:Nemetona
ID: 41760738
We tried all three proposed solutions and between them we achieved the result we wanted.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now