Request-uri Too large How to solve

Source: Internet
Author: User
RequestUri Too Large Request URI Too Large



<title>414 Request-uri Too Large</title>

Request-uri Too Large


The requested URL ' s length exceeds the capacity
Limit for the this server.


Request Failed:uri too long



apache/1.3.29 Server at localhost Port 80

There was a problem uploading the data to MySQL.
$SQL = "INSERT into". $tTableName. "Set".
"Ttitle= ' title". Date ("H:i:s"). "',".
"Ttext= ' content". Date ("H:i:s"). "',".
"Ttitle=". $tTitle. "',".
"Ttext=". $tText. "',".
"Tuser= '". $_session["Zhanghu"]. "',".
"Tbkid=". $BKId. "',".
"Tdatetime = '". Date ("Y-m-d h:i:s"). "'";
mysql_query ($SQL);//Perform add operation
Use code alert (ttext.length) to know that Ttext has more than 30,000 lengths when not passed
Because the $ttext is too big,
How to modify server settings to save large content to MySQL?

The internet says it's about this.
This is what's in php.ini.
; Valid Range 0-2147483647. Default = 4096.
; mssql.textlimit = 4096

; Valid Range 0-2147483647. Default = 4096.
; mssql.textsize = 4096


Reply to discussion (solution)

TEXT       < POW (2, +) = 64KMEDIUMTEXT < POW (2) = 16MLONGTEXT   < POW (2, +) = 4096M

TEXT       < POW (2, +) = 64KMEDIUMTEXT < POW (2) = 16MLONGTEXT   < POW (2, +) = 4096M


What does that mean?
My Ttext field type is Longtext.
It also successfully saved tens of thousands of words in this field when I managed the database directly in http://localhost/phpMyAdmin/index.php.
But just upload it with your own code.

You don't seem to be clear.
If PHP has obtained $ttext, can not write to the database, you should press the old Xu said set up the database
If the client data, PHP can not get $ttext, depending on the method, get only about 2k, post theory is unlimited, but the actual server settings limit, modify the server settings, or change post to transfer files

You don't seem to be clear.
If PHP has obtained $ttext, can not write to the database, you should press the old Xu said set up the database
If the client data, PHP can not get $ttext, depending on the method, get only about 2k, post theory is unlimited, but the actual server settings limit, modify the server settings, or change post to transfer files

PHP is already $ttext.
Use $ttextlen=strlen ($tText); Get the length of $ttext,
$tTextLen is also a tens of thousands of-big number

What do you mean, modify server settings? How to change? Where to change?

TEXT       < POW (2, +) = 64KMEDIUMTEXT < POW (2) = 16MLONGTEXT   < POW (2, +) = 4096M


Can you tell me what you want to convey to me?
That's what you're going to look like.
Believe that ordinary people should not understand,
Your response has not been a real problem-solving goal.

If the incoming data is available, then there is no Request-uri Too Large error.
Check to see if the appropriate field type is the type that can hold the content


Your question is not clear in itself.
From where to preach, how to pass, in the middle how to deal with, the problem inside a PHP code page does not, give a result, who answer is by guessing

See your problem so omitted, Lao Xu think you are enough knowledge, so simply point out the problem, but it seems to be a vain
Your attitude is not like a plea for guidance, like the leadership of the order, forget, do not say ...

Http://stackoverflow.com/questions/9877744/request-uri-too-large
Http://stackoverflow.com/questions/2891574/how-do-i-resolve-a-http-414-request-uri-too-long-error

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.