Commit 065d2cc7 065d2cc73e0858f56914c3ba722a78d7465ee9a7 by Sam Roberts

Added test for % decoding.

1 parent 60de6c90
scheme://%75%73%65%72:%70%61%73%73@%68%6f%73%74 --> SUCCESS
scheme <scheme>
user <user>
passwd <pass>
auth <>
host <hest>
port 0
path <>
query <>
ftp://user:pass@host//a/path --> SUCCESS
scheme <ftp>
user <user>
passwd <pass>
auth <>
host <host>
port 0
path </a/path>
query <>
ftp://:pass@host//a/path --> SUCCESS
scheme <ftp>
user <>
passwd <pass>
auth <>
host <host>
port 0
path </a/path>
query <>
ftp://user:@host//a/path --> SUCCESS
scheme <ftp>
user <user>
passwd <>
auth <>
host <host>
port 0
path </a/path>
query <>
ftp://user:pass@//a/path --> SUCCESS
scheme <ftp>
user <user>
passwd <pass>
auth <>
host <>
port 0
path </a/path>
query <>
ftp://user:@//a/path --> SUCCESS
scheme <ftp>
user <user>
passwd <>
auth <>
host <>
port 0
path </a/path>
query <>
ftp://:@host//a/path --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <host>
port 0
path </a/path>
query <>
ftp://:pass@//a/path --> SUCCESS
scheme <ftp>
user <>
passwd <pass>
auth <>
host <>
port 0
path </a/path>
query <>
ftp://:@//a/path --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <>
port 0
path </a/path>
query <>
ftp://://a/path --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <>
port 0
path </a/path>
query <>
ftp://@//a/path --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <>
port 0
path </a/path>
query <>
ftp:////a/path --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <>
port 0
path </a/path>
query <>
ftp://user:pass@host/a/path --> SUCCESS
scheme <ftp>
user <user>
passwd <pass>
auth <>
host <host>
port 0
path <a/path>
query <>
ftp://:pass@host/a/path --> SUCCESS
scheme <ftp>
user <>
passwd <pass>
auth <>
host <host>
port 0
path <a/path>
query <>
ftp://user:@host/a/path --> SUCCESS
scheme <ftp>
user <user>
passwd <>
auth <>
host <host>
port 0
path <a/path>
query <>
ftp://user:pass@/a/path --> SUCCESS
scheme <ftp>
user <user>
passwd <pass>
auth <>
host <>
port 0
path <a/path>
query <>
ftp://user:@/a/path --> SUCCESS
scheme <ftp>
user <user>
passwd <>
auth <>
host <>
port 0
path <a/path>
query <>
ftp://:@host/a/path --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <host>
port 0
path <a/path>
query <>
ftp://:pass@/a/path --> SUCCESS
scheme <ftp>
user <>
passwd <pass>
auth <>
host <>
port 0
path <a/path>
query <>
ftp://:@/a/path --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <>
port 0
path <a/path>
query <>
ftp://:/a/path --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <>
port 0
path <a/path>
query <>
ftp://@/a/path --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <>
port 0
path <a/path>
query <>
ftp:///a/path --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <>
port 0
path <a/path>
query <>
pop://pop.example.net --> SUCCESS
scheme <pop>
user <>
passwd <>
auth <>
host <pop.example.net>
port 0
path <>
query <>
pop://user@pop.example.net --> SUCCESS
scheme <pop>
user <user>
passwd <>
auth <>
host <pop.example.net>
port 0
path <>
query <>
pop://user:passwd@pop.example.net --> SUCCESS
scheme <pop>
user <user>
passwd <passwd>
auth <>
host <pop.example.net>
port 0
path <>
query <>
pop://user;auth=*@pop.example.net --> SUCCESS
scheme <pop>
user <user>
passwd <>
auth <*>
host <pop.example.net>
port 0
path <>
query <>
pop://pop.example.net:111 --> SUCCESS
scheme <pop>
user <>
passwd <>
auth <>
host <pop.example.net>
port 111
path <>
query <>
pop://user@pop.example.net:111 --> SUCCESS
scheme <pop>
user <user>
passwd <>
auth <>
host <pop.example.net>
port 111
path <>
query <>
pop://user:passwd@pop.example.net:111 --> SUCCESS
scheme <pop>
user <user>
passwd <passwd>
auth <>
host <pop.example.net>
port 111
path <>
query <>
pop://user;auth=*@pop.example.net:111 --> SUCCESS
scheme <pop>
user <user>
passwd <>
auth <*>
host <pop.example.net>
port 111
path <>
query <>
imap://imap.example.net --> SUCCESS
scheme <imap>
user <>
passwd <>
auth <>
host <imap.example.net>
port 0
path <>
query <>
imap://user@imap.example.net --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <>
host <imap.example.net>
port 0
path <>
query <>
imap://user:passwd@imap.example.net --> SUCCESS
scheme <imap>
user <user>
passwd <passwd>
auth <>
host <imap.example.net>
port 0
path <>
query <>
imap://user;auth=*@imap.example.net --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <*>
host <imap.example.net>
port 0
path <>
query <>
imap://imap.example.net:111 --> SUCCESS
scheme <imap>
user <>
passwd <>
auth <>
host <imap.example.net>
port 111
path <>
query <>
imap://user@imap.example.net:111 --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <>
host <imap.example.net>
port 111
path <>
query <>
imap://user:passwd@imap.example.net:111 --> SUCCESS
scheme <imap>
user <user>
passwd <passwd>
auth <>
host <imap.example.net>
port 111
path <>
query <>
imap://user;auth=*@imap.example.net:111 --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <*>
host <imap.example.net>
port 111
path <>
query <>
imap://imap.example.net/mbox --> SUCCESS
scheme <imap>
user <>
passwd <>
auth <>
host <imap.example.net>
port 0
path <mbox>
query <>
imap://user@imap.example.net/mbox --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <>
host <imap.example.net>
port 0
path <mbox>
query <>
imap://user:passwd@imap.example.net/mbox --> SUCCESS
scheme <imap>
user <user>
passwd <passwd>
auth <>
host <imap.example.net>
port 0
path <mbox>
query <>
imap://user;auth=*@imap.example.net/mbox --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <*>
host <imap.example.net>
port 0
path <mbox>
query <>
imap://imap.example.net:111/mbox --> SUCCESS
scheme <imap>
user <>
passwd <>
auth <>
host <imap.example.net>
port 111
path <mbox>
query <>
imap://user@imap.example.net:111/mbox --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <>
host <imap.example.net>
port 111
path <mbox>
query <>
imap://user:passwd@imap.example.net:111/mbox --> SUCCESS
scheme <imap>
user <user>
passwd <passwd>
auth <>
host <imap.example.net>
port 111
path <mbox>
query <>
imap://user;auth=*@imap.example.net:111/mbox --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <*>
host <imap.example.net>
port 111
path <mbox>
query <>
imap://imap.example.net/mbox/user@host --> SUCCESS
scheme <imap>
user <imap.example.net/mbox/user>
passwd <>
auth <>
host <host>
port 0
path <>
query <>
imap://user@imap.example.net/mbox/user@host --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <>
host <imap.example.net>
port 0
path <mbox/user@host>
query <>
imap://user:passwd@imap.example.net/mbox/user@host --> SUCCESS
scheme <imap>
user <user>
passwd <passwd>
auth <>
host <imap.example.net>
port 0
path <mbox/user@host>
query <>
imap://user;auth=*@imap.example.net/mbox/user@host --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <*>
host <imap.example.net>
port 0
path <mbox/user@host>
query <>
imap://imap.example.net:111/mbox/user@host --> SUCCESS
scheme <imap>
user <imap.example.net>
passwd <111/mbox/user>
auth <>
host <host>
port 0
path <>
query <>
imap://user@imap.example.net:111/mbox/user@host --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <>
host <imap.example.net>
port 111
path <mbox/user@host>
query <>
imap://user:passwd@imap.example.net:111/mbox/user@host --> SUCCESS
scheme <imap>
user <user>
passwd <passwd>
auth <>
host <imap.example.net>
port 111
path <mbox/user@host>
query <>
imap://user;auth=*@imap.example.net:111/mbox/user@host --> SUCCESS
scheme <imap>
user <user>
passwd <>
auth <*>
host <imap.example.net>
port 111
path <mbox/user@host>
query <>
ftp://ftp.example.org/mbox/user%40host --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <ftp.example.org>
port 0
path <mbox/user@host>
query <>
ftp://ftp.example.org:111/mbox/user%40host --> SUCCESS
scheme <ftp>
user <>
passwd <>
auth <>
host <ftp.example.org>
port 111
path <mbox/user@host>
query <>