请求标头的大小太长 [英] Size of the request headers is too long

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

问题描述

我目前正在ASP.NET MVC网站上工作,并且工作正常.

I'm currently working on an ASP.NET MVC website and it works fine.

但是我有一个根本无法理解的问题...例如,当我在带有Visual Studio的Chrome上启动我的网站时,没有问题,但是当我停止它并尝试使用Firefox启动其他测试时,,我的网址越来越大,然后出现此错误:

But I have a problem that I don't understand at all... When I launch my website on Visual Studio with Chrome for example no problem, but when I stop it and try to launch an other test with Firefox for example, my url is growing and then I get this error :

HTTP400.请求标头的大小太长.

HTTP 400. The size of the request headers is too long.

有人可以解释一下为什么会这样吗?是我的代码中的某些东西,还是它来自IIS Express或其他任何东西?

Can someone explain me why this is happening ? Is it something with my code or does it come from IIS express or anything else ?

预先感谢

推荐答案

您可能可以增加Web服务器允许的请求大小.但是,请查看您的浏览器发送到服务器的Cookie的数量和大小.清除您的Cookie并重试,然后查看是否可以减少应用程序使用的Cookie的大小和数量.越少越好!移动浏览器可能会出现这些错误,因为它们的大小与台式机浏览器的大小不同(?).

You can probably increase the size of requests your webserver will allow. However, take a look at the amount and the size of cookies your browser are sending to the server. Clear your cookies and try again, and see if you can reduce the size and amount of cookies your app is using. The less, the better! Mobile browsers can get these errors, as they don't allow the same size as do desktop browsers(?).

该错误还可能意味着查询字符串变得太大.

The error can also mean the query string is getting too large.

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

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