您好,欢迎访问一九零五行业门户网

414request怎么解决

414是什么意思?
在请求的时候使用了get方法,由于拼接的url过长,超出服务器的限制导致出现了“414 request-uri too large”错误。
the http protocol does not place any a priori limit on the length of a uri. servers must be able to handle the uri of any resource they serve, and should be able to handle uris of unbounded length if they provide get-based forms that could generate such uris. a server should return 414 (request-uri too long) status if a uri is longer than the server can handle (see section 10.4.15).
      note: servers ought to be cautious about depending on uri lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths.
解决方法:
1、nginx服务器修改
在nginx的nginx.conf修改如下参数的:
client_header_buffer_size 512k; large_client_header_buffers 4 512k;
2、tomcat服务器修改
在apache的httpd.conf(路径:apache\conf)配置文件中(直接加就可以)
加的时候位置要注意
limitrequestline 40940 
limitrequestfieldsize 40940 
问题解决。
以上就是414request怎么解决的详细内容。
其它类似信息

推荐信息