1 # Any blank lines and those beginning with # are comments and
2 # ignored. To add additional test cases that could potentially
3 # break URL parsing in mozilla add the input URL on a new line
4 # and follow it with the expected output. Then run urltest on
5 # this file and hopefully the expected output should match the
6 # one from the program.
7 # - Gagan Saksena 03/28/00
9 http
://username
:password@hostname.com
:80/pathname
/.
/more
/stuff
/..
/path
10 http
,username
:password
,hostname.com
,80,,/pathname
/more
/path
12 username@host
:8080/path
13 ,username
,host
,8080,,/path
19 scheme
,,host
,-1,,/netlib
24 scheme
:user@hostname.edu
:80/pathname
25 scheme
,user
,hostname.edu
,80,,/pathname
27 http
://username
:password@hostname
:80/pathname
28 http
,username
:password
,hostname
,80,,/pathname
31 resource
,,,-1,,/pathname
33 ftp
://uname
%here.com
:pwd@there.com
/aPath
/a.html
34 ftp
,uname
%here.com
:pwd
,there.com
,-1,,/aPath
/a.html
36 http
://www.inf.bme.hu?foo
=bar
37 http
,,www.inf.bme.hu
,-1,foo
=bar
,/?foo
=bar
39 http
://test.com
/aPath
/a.html
#/1/2
40 http
,,test.com
,-1,,/aPath
/a.html
#/1/2
42 http
://user
:pass@ipaddres
:2/get?foo
/something
43 http
,user
:pass
,ipaddres
,2,foo
/something
,/get?foo
/something