请求URI太大 [英] Request-URI Too Large

查看:223
本文介绍了请求URI太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在大小大约9 000个符号的大 $ _ GET 查询中,它们被分成10个变量。 b $ b

 请求URI过大

请求的URL长度超过此服务器的容量限制。

这个问题的解决方法是什么?

解决方案

如果您希望在不更改服务器配置的情况下将所有这些信息传递给GET,则没有解决方法。 其他解决方案 p>


  • 在表单中使用POST(或隐藏表单,并在提交链接的链接上添加onclick事件)

  • 使用会话。当服务器生成链接时,将其存储在具有唯一标识(或RID,它可以是完整URI的md5)的$ _SESSION中,并通过GET将其传递。

  • 使用数据库或文件存储(使用相同的会话过程)


Got this error on a big $_GET query in size ~9 000 symbols (they are divided into ~10 variables).

Request-URI Too Large

The requested URL's length exceeds the capacity limit for this server.

What is a workaround for this problem?

解决方案

There is no workaround if you want pass all these info with GET without change server configuration.

Other solutions:

  • Use POST with a form (or an hidden form and add onclick event at your link that submit it)
  • Use Session. When the server generates the link, store it in $_SESSION with an unique id (or RID, it can be md5 of complete URI) and pass it via GET.
  • Use Database or file storage (with the same procedure of session)

这篇关于请求URI太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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