gpt4 book ai didi

http - 什么是有效的 URL 查询字符串?

转载 作者:可可西里 更新时间:2023-11-01 15:09:56 28 4
gpt4 key购买 nike

URL 查询字符串中允许使用哪些字符?

查询字符串是否必须遵循特定格式?

最佳答案

根据 https://www.rfc-editor.org/rfc/rfc3986

在 2.2 保留字符部分,列出了以下字符:

reserved = gen-delims / sub-delims

gen-delims = “:” / “/” / “?” / “#” / “[” / “]” / “@”

sub-delims = “!” / “$” / “&” / “’” / “(” / “)” / “*” / “+” / “,” / “;”/ “=”

然后规范说:

If data for a URI component would conflict with a reserved character’spurpose as a delimiter, then the conflicting data must bepercent-encoded before the URI is formed.

接下来,在2.3节非保留字符中,列出了以下内容:

unreserved = ALPHA / DIGIT / “-” / “.” / “_” / “~”

关于http - 什么是有效的 URL 查询字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13373504/

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