gpt4 book ai didi

http - QueryString/GET/URL 参数的限制是什么

转载 作者:可可西里 更新时间:2023-11-01 15:03:53 25 4
gpt4 key购买 nike

QueryString/GET/URL 参数有什么限制

最佳答案

理论上没有限制。对于 HTTP URL,HTTP 1.1 specification状态:

The HTTP protocol does not place any a priori limit on the length ofa URI. Servers MUST be able to handle the URI of any resource theyserve, and SHOULD be able to handle URIs of unbounded length if theyprovide GET-based forms that could generate such URIs. A serverSHOULD return 414 (Request-URI Too Long) status if a URI is longerthan the server can handle (see section 10.4.15).

但实际上,许多客户端和服务器只支持一定长度的 URL。 rule of thumb is not to use URLs longer than 2000 characters (已考虑百分比编码)。

关于http - QueryString/GET/URL 参数的限制是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3091485/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com