请求URI太大 [英] Request-URI Too Large
本文介绍了请求URI太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在大小大约9 000个符号的大 $ _ GET
查询中,它们被分成10个变量。 b $ b
请求URI过大
请求的URL长度超过此服务器的容量限制。
这个问题的解决方法是什么?
解决方案
如果您希望在不更改服务器配置的情况下将所有这些信息传递给GET,则没有解决方法。 其他解决方案 p>
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屋!
查看全文