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 server handle (oo Long) status if a URI is longer than the server server handle (s.
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 older client or proxy implementations might not properly support these len#n.##len#>##>#>#a>#bv
#1、nginx伺服器修改
在nginx的nginx.conf修改如下參數的:
client_header_buffer_size 512k; large_client_header_buffers 4 512k;
在Apache的httpd.conf(路徑:Apache\conf)設定檔中(直接加就可以)
加的時候位置要注意LimitRequestFieldSize 40940 問題解決。
以上是414request怎麼解決的詳細內容。更多資訊請關注PHP中文網其他相關文章!