Is there any way to lớn detect when URL's length is exceeded? This is causing after sending large number of query variables in query string. Can it be increased at run rẩy time? It seems dependent on server configuration và what is maximum length for URL?
Gumbo
654k112 gold badges790 silver badges851 bronze badges
asked Jul 14, 2012 at 8:10
IrfanIrfan
5,04212 gold badges54 silver badges63 bronze badges
1
- On the receiving over you normally receive a
414 Request-URI Too Long
-header. - No it cannot be increased at runtime. And in Apache, if you use that as a webservers, you can limit it to lớn something below the mặc định 8190 bytes, but not to lớn something above it without changing the source code và recompiling.
- Yes, is it server dependent, and even UA-dependent, and if you run rẩy
Suhusoin
withPHP
, even more possible rules apply. - If you need to lớn ask "What is the maximum lenght of an url?", you actually need to lớn ask: "Why are these not POST values?".
answered Jul 14, 2012 at 8:27
WrikkenWrikken
70.4k8 gold badges98 silver badges136 bronze badges
1
Problem arises if size method is not phối and it tries to lớn fetch variables from session. To solve this phối your size method as method="POST", it will work
answered Aug 29, 2018 at 10:43
This problem might be caused by the Apache limits the phối a size of a client’s HTTP request-line (e.g. ) and the HTTP request header field size. So you will need to lớn increase the mặc định values if the request URL is this large. Increase the URI length limit in the Apache configuration tệp tin (by mặc định it is /etc/httpd/conf/httpd.conf ):
LimitRequestLine 16380
LimitRequestFieldSize 16380
answered Dec 15, 2020 at 11:41
CS StudentCS Student
1461 silver badge16 bronze badges
1
This problem arises if size method is not phối and it tries to lớn fetch variables from session. To solve this phối your size method as method="POST", it will work
answered Feb trăng tròn, 2019 at 9:33
yugandharayugandhara
1211 silver badge5 bronze badges