请求的URL长度超过此服务器的容量限制? [英] The requested URL's length exceeds the capacity limit for this server?

查看:4170
本文介绍了请求的URL长度超过此服务器的容量限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法检测何时超过URL的长度?这是在查询字符串中发送大量查询变量后导致的。可以在运行时增加吗?它似乎依赖于服务器配置和URL的最大长度是多少?

Is there any way to 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 time? It seems dependent on server configuration & what is maximum length for URL?

推荐答案


  1. 在接收端,您通常会收到 414 Request-URI太长 -header。

  2. 不能在运行时增加它。在Apache中,如果您将其用作Web服务器,则可以将其限制为低于默认的8190字节,而不是高于的内容,而无需更改源代码和放大器;重新编译。

  3. 是的,它是服务器相关的,甚至是UA依赖的,如果你运行 Suhusoin ,带有 PHP ,甚至可能适用更多规则。

  4. 如果您需要询问网址的最大长度是多少? ,你实际上需要问:为什么这些不是POST值?

  1. On the receiving end 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 something below the default 8190 bytes, but not to something above it without changing the source code & recompiling.
  3. Yes, is it server dependent, and even UA-dependent, and if you run Suhusoin with PHP, even more possible rules apply.
  4. If you need to ask "What is the maximum lenght of an url?", you actually need to ask: "Why are these not POST values?".

这篇关于请求的URL长度超过此服务器的容量限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆