«

HTTP Error 400. The size of the request headers is too long.怎么回事?怎么解决?

时间:2021-10-27 16:34     作者:!admin     分类:


HTTP Error 400. The size of the request headers is too long.怎么回事?怎么解决?

当IIS返回"Bad Request - Request Too Long. HTTP Error 400. The size of the request headers is too long."的错误时,说明客户端发出的请求头长度超出了Http.sys的限制,这个限制是由注册表"HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters"中的两个参数MaxFieldLength与MaxRequestBytes决定的,默认值是16384字节。
其实就是浏览器对cookie的限制导致的,那只要把COOKIE删掉就行了;或者在打开一个新浏览器,没问题了。