Page 1 of 1

Request-URI Too Long

PostPosted: Mon Sep 07, 2015 3:56 am
by dspaan
I'm getting this error when i want to do an export calls report of about 300 ingroups. Every client in our system has their own ingroup and i simply want a total export of all calls on a day. It's not many calls but the query is too long.

I googled it and found out that i have to set limitrequestline directive to a higher value.

https://confluence.atlassian.com/displa ... rge'+Error

I tried to change this ins /etc/apache2/httpd.conf and in php.ini like this:

LimitRequestLine 100000
LimitRequestFieldSize 18094

But i still get the error. Does anyone have a workaround for this?

On stackoverflow they say the query should be POST instead of GET:
http://stackoverflow.com/questions/2891 ... long-error

Re: Request-URI Too Long

PostPosted: Mon Sep 07, 2015 8:00 pm
by mflorell
You can change the GET in the code to a POST if you want. We have done that in a few of the reports, but not all of them.

Re: Request-URI Too Long

PostPosted: Sun Jun 09, 2019 3:11 pm
by ZibiX
Hi.

One of mine clients have the same problem with Agent Tine Report. Vocibox 6.0.4 SVN 3047.

I have switched from GET to POST in AST_agent_time_detail.php:
from echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>";
to echo "<FORM ACTION=\"$PHP_SELF\" METHOD=POST name=vicidial_report id=vicidial_report>";

It is working OK for the report but DOWNLOAD button still have the same Request-URI Too Long error.

What can I change to make this work form DOWNLOAD button in the reports tab?

Re: Request-URI Too Long

PostPosted: Sun Jun 09, 2019 3:27 pm
by williamconley
Download isn't as simple, but can still be done. You have to change the "link" to a "button" and then change the URL values to a group of hidden inputs in a form with that "button" inside the form. Then the button will have the same values as the link would, but "post" instead of "get". All the reports I've seen capture all values whether GET or POST, so it should still work the same unless that report hasn't been maintained.

Re: Request-URI Too Long

PostPosted: Sun Jun 09, 2019 3:33 pm
by ZibiX
Thank you williamconley for fast answer. Can you provide an example of that button?

Re: Request-URI Too Long

PostPosted: Sun Jun 09, 2019 3:47 pm
by williamconley
HTML has thousands of tutorials online, as does PHP form submission. And I'm working on an install at the moment. 8-)