错误请求 - 请求过长HTTP错误400.请求头的大小太长 [英] Bad Request - Request Too Long HTTP Error 400. The size of the request headers is too long

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

问题描述

我的一些用户在他们请求我的网站的某些页面时,有时会收到以下错误:
错误的请求 - 请求过长HTTP错误400.请求头的大小太长

Some of my users are getting the following error sometimes when they request some of the pages of my site: Bad Request - Request Too Long HTTP Error 400. The size of the request headers is too long

这似乎只发生在Firefox。

It seems to happen only in Firefox.

删除用户Cookie有帮助。

Deleting the users cookies does help.

我不明白的是以下内容:我认为Cookie会附加到每个请求。为什么只有我的一个或两个页面显示此错误,大多数从不?

What I don't understand is the following: I thought that cookies are appended to every request. Why is it that only one or two of my pages show this error and most do never?

它不依赖于服务器页面。如果用户请求
http://example.com/user/Myname
他可能会得到错误。
如果他只是更改URL的大小写,它会再次工作(如 http://example.com/用户/名字)。 (我运行IIS,这不关心太大的资本化)。

It is also not dependent on the server page. If the user requests http://example.com/user/Myname he might get the error. If he just changes the capitalization of the URL it works again (like http://example.com/user/myname). (I am running IIS which does not care too much about capitalization).

对于浏览器,两个URL是不同的,对于服务器,它们不是。

For the browser the two URLs are different, for the server they aren't.

任何想法发生了什么?

Any idea what is happening?

推荐答案

似乎有太多的cookie。我确信没有这么多,它现在正在工作。

It seems that there were too many cookies after all. I made sure that there were not so many and it is working now.

这篇关于错误请求 - 请求过长HTTP错误400.请求头的大小太长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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