rfc3986

Can HTTP URIs have non-ASCII characters?

限于喜欢 提交于 2019-11-29 03:07:38
I tried to find this in the relevant RFC, IETF RFC 3986 , but couldn't figure it. Do URIs for HTTP allow Unicode, or non-ASCII of any kind? Can you please cite the section and the RFC that supports your answer. NB: For those who might think this is not programming related - it is. It's related to an ISAPI filter I'm building. Addendum I've read section 2.5 of RFC 3986. But RFC 2616, which I believe is the current HTTP protocol, predates 3986, and for that reason I'd suppose it cannot be compliant with 3986. Furthermore, even if or when the HTTP RFC is updated, there still will be the issue of

Is a URL with // in the path-section valid?

六月ゝ 毕业季﹏ 提交于 2019-11-27 20:23:54
I have a question regarding URLs: I've read the RFC 3986 and still have a question about one URL: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character. If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//"). In addition, a URI reference (Section 4.1) may be a relative-path reference, in which case the first path segment cannot contain a colon (":") character. The ABNF requires five separate rules to disambiguate these cases, only one of which will match the path

What is the semicolon reserved for in URLs?

我与影子孤独终老i 提交于 2019-11-27 19:40:41
The RFC 3986 URI: Generic Syntax spec lists a semicolon as a reserved (sub-delim) character: reserved = gen-delims / sub-delims gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@" sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" What is the reserved purpose of the ";" of the semicolon in URIs? For that matter, what is the purpose of the other sub-delims (I'm only aware of purposes for "&", "+", and "=")? There is an explanation at the end of section 3.3. Aside from dot-segments in hierarchical paths, a path segment is considered opaque by the generic syntax. URI

What is the difference between a URI, a URL and a URN?

懵懂的女人 提交于 2019-11-27 08:46:52
问题 People talk about URL s, URI s, and URN s as if they're different things, but they look the same to the naked eye. What are the distinguishable differences between them? 回答1: From RFC 3986: A URI can be further classified as a locator, a name, or both. The term "Uniform Resource Locator" (URL) refers to the subset of URIs that, in addition to identifying a resource, provide a means of locating the resource by describing its primary access mechanism (e.g., its network "location"). The term

What is the semicolon reserved for in URLs?

限于喜欢 提交于 2019-11-27 04:23:08
问题 The RFC 3986 URI: Generic Syntax spec lists a semicolon as a reserved (sub-delim) character: reserved = gen-delims / sub-delims gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@" sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" What is the reserved purpose of the ";" of the semicolon in URIs? For that matter, what is the purpose of the other sub-delims (I'm only aware of purposes for "&", "+", and "=")? 回答1: There is an explanation at the end of section 3.3.

What is the difference between a URI, a URL and a URN?

邮差的信 提交于 2019-11-25 22:01:39
问题 People talk about URL s, URI s, and URN s as if they\'re different things, but they look the same to the naked eye. What are the distinguishable differences between them? 回答1: From RFC 3986: A URI can be further classified as a locator, a name, or both. The term "Uniform Resource Locator" (URL) refers to the subset of URIs that, in addition to identifying a resource, provide a means of locating the resource by describing its primary access mechanism (e.g., its network "location"). The term

Which characters make a URL invalid?

走远了吗. 提交于 2019-11-25 21:41:01
问题 Which characters make a URL invalid? Are these valid URLs? example.com/file[/].html http://example.com/file[/].html 回答1: In general URIs as defined by RFC 3986 (see Section 2: Characters) may contain any of the following 84 characters: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;= Note that this list doesn't state where in the URI these characters may occur. Any other character needs to be encoded with the percent-encoding ( % hh ). Each part of the URI