✔ eXAMPLE://a/./b/../b/%63/%7bfoo%7d → example://a/b/c/%7Bfoo%7D
✔ http://www.example.com → http://www.example.com/
✔ http://www.yahoo.com/%a1 → http://www.yahoo.com/%A1
✔ HTTP://www.Example.com/ → http://www.example.com/
✔ http://www.example.com/a%c2%b1b → http://www.example.com/a%C2%B1b
✔ http://www.example.com/%7Eusername/ → http://www.example.com/~username/
✔ http://www.example.com:80/bar.html → http://www.example.com/bar.html
✔ http://www.example.com/../a/b/../c/./d.html → http://www.example.com/a/c/d.html
✔ ../ → 
✔ ./ → 
✔ /./ → /
✔ /. → /
✔ /a/b/c/./../../g → /a/g
✔ mid/content=5/../6 → mid/6
✔ /foo/bar/. → /foo/bar/
✔ /foo/bar/./ → /foo/bar/
✔ /foo/bar/.. → /foo/
✔ /foo/bar/../ → /foo/
✔ /foo/bar/../baz → /foo/baz
✔ /foo/bar/../.. → /
✔ /foo/bar/../../ → /
✔ /foo/bar/../../baz → /baz
✔ a/./b/../b/ → a/b/
✔ . → 
✔ .. → 
✔ %63 → c
✔ %63/%7b → c/%7B
✔ http://example.com → http://example.com/
✔ http://example.com/ → http://example.com/
✔ http://example.com:/ → http://example.com/
✔ http://example.com:80/ → http://example.com/
✔ https://example.com → https://example.com/
✔ https://example.com/ → https://example.com/
✔ https://example.com:/ → https://example.com/
✔ https://example.com:443/ → https://example.com/
✔ http://fancysite.nl/links/doit.pl?id=2029 → http://fancysite.nl/links/doit.pl?id=2029
✔ http://example.com/index.html#fragment → http://example.com/index.html#fragment
✔ http://example.com:81/index.html → http://example.com:81/index.html
✔ HtTp://User:Pass@www.ExAmPle.com:80/Blah → http://User:Pass@www.example.com/Blah
✔ /test:2/ → 
✔ mailto:mail@example.com → mailto:mail@example.com
✔ http://user@example.com/ → http://user@example.com/
✔ http://example.com/path/?query#fragment → http://example.com/path/?query#fragment
✔ http://example.com/path/?q1&q2&q3&q4 → http://example.com/path/?q1&q2&q3&q4
✔ http://example.com:400/ → http://example.com:400/
✔ http://example.com/ → http://example.com/
✔ http://example.com/path/?query=space value → http://example.com/path/?query=space%20value
✔ http://www.example.com/?array[key]=value → http://www.example.com/?array%5Bkey%5D=value