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

1

  1. On the receiving over you normally receive a 414 Request-URI Too Long-header.
  2. 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.
  3. Yes, is it server dependent, and even UA-dependent, and if you run rẩy Suhusoin with PHP, even more possible rules apply.
  4. 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

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

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