网页出现HTTP 400 Bad Request,Size of a request header field exceeds server limit
2012-03-07 00:05
786 查看
网页出现HTTP 400 Bad Request,Size of a request header field exceeds server limit.原因及解决方法
有时浏览网页时会出现Bad Request
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
意思为:错误的请求。您的浏览器发送一个请求,该服务器无法理解。一个请求头域的大小超过服务器的限制.
一般情况为cookie设置的太多了,导致请求头信息过大。
这个跟服务器的设置有关
LimitRequestLine指令用来限制接收客户端发送的HTTP请求行的字节数,允许服务器管理员增加或减少客户端HTTP请求行允许大小的限制。因为请求行包括HTTP方法、URI、协议版本,所以LimitRequestLine指令会限制请求URI的长度。服务器会需要这个值足够大以装载 它所有的资源名,包括可能在GET请求中所传递的查询部分的所有信息。
LimitRequestFieldSize指令用来限制客户端发送的请求头的字节数,允许服务器管理员增加,或减少HTTP请求头域大小的限制。一般来 说,服务器需要此值足够大,以适应普通客户端的任何请求的头域大小。一个普通头域的大小对于不同的客户端来说是有很大差别的,一般与用户配置他们的浏览器 以支持更多的内容协议密切相关。
LimitRequestLine和LimitRequestFieldSize指令给了服务器管理员更大的可控性,以控制客户端不正常的请求行为。这有助于避免某些形式的拒绝服务攻击。默认值为“8190”。
解决办法:
1、技术人员可以修改配置文件
在Apache的httpd.conf配置文件中添加
LimitRequestLine 40940
LimitRequestFieldSize 40940
2、用户可以清除浏览器的cookie记录
相关文章推荐
- 网页出现HTTP 400 Bad Request,Size of a request header field exceeds server limit.原因及解决方法
- 【cookie的大小限制详解】Size of a request header field exceeds server limit .
- 解决Bug:Size of a request header field exceeds server limit
- IIS "Bad Request - Request Too Long. HTTP Error 400. The size of the request headers is too long."
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- linux上wget命令出现HTTP request sent, awaiting response... 400 Bad Request问题
- SQL 2005 Report Server 请求因 HTTP 状态 400 失败: Bad Request 处理方法
- Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的解决办法
- ajax 报错 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- SQL 2005 Report Server 请求因 HTTP 状态 400 失败: Bad Request 处理方法 的解决方法
- WCF 中,出现The remote server returned an unexpected response: (400) Bad Request.
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Android Studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的解决办法
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的解决办法
- 关于前台jsp页面Failed to load resource: the server responded with a status of 400 (Bad Request)
- dojo/request 出现tomcat报错 error parsing HTTP request header Note: further occurrences of HTTP header..
- Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的解决办法
- 微信小程序 wx.request 出现 Failed to load resource: the server responded with a status of 400