Tuesday, August 28, 2012

request failed: URI too long (longer than 8190)

Hi ,

Server version: Apache/2.2.22 (Ubuntu)

Do the below entry in the end of file /etc/apache2/apache2.conf

LimitRequestLine 819000

and restart the apache
$ sudo service apache2 restart

But this is not recommended by apache , so what is other option.

Do the change in your code .
This problem comes when we used GET method to post the data using ajax or iframe.
So just change the method from GET to POST .
Using POST we can post more data as compare to GET method.

The GET method is restricted to send upto 1024 characters only while in POST method we can send 2MB of data.

Hope, it works. If any query feel free to share with me.



No comments:

Post a Comment