Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Report square brackets in URI templates #58

Closed
zdne opened this issue Nov 5, 2013 · 2 comments
Closed

Report square brackets in URI templates #58

zdne opened this issue Nov 5, 2013 · 2 comments

Comments

@zdne
Copy link
Contributor

zdne commented Nov 5, 2013

As per RFC3513 square brackets might occur in URI:

A host identified by an Internet Protocol literal address, version 6 [RFC3513] or later, is distinguished by enclosing the IP literal within square brackets ("[" and "]"). This is the only place where square bracket characters are allowed in the URI syntax.

Snow Crash should accommodate this.

Refer to http://stackoverflow.com/questions/40568/square-brackets-in-urls

@kuba-kubula
Copy link
Member

But as per http://www.ietf.org/rfc/rfc1738.txt ( via http://stackoverflow.com/a/40583 ) - the [ or ] MUST be encoded in percent format.

Just the host(name) is allowed to do so.

@zdne
Copy link
Contributor Author

zdne commented Nov 6, 2013

@kuba-kubula

What I am saying is I will update the parser so it accepts square brackets in the host protocol part of URI e.g. http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/resource where square brackets are accepted. The parser will warn on [ or ]anywhere else suggesting using %-escapes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants