Solved

Increase size of permitted URI

Posted on 2016-08-11
4
70 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 28

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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