Solved

Increase size of permitted URI

Posted on 2016-08-11
4
45 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 83

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 24

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Trying to connect the LDAP over SSL 38 245
Website being blocked? 3 122
Generic Rule to Redirect and Rewrite URL using .htaccess 8 73
.htaccess file settings 4 54
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
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…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

21 Experts available now in Live!

Get 1:1 Help Now