michael@0: # Any blank lines and those beginning with # are comments and michael@0: # ignored. To add additional test cases that could potentially michael@0: # break URL parsing in mozilla add the input URL on a new line michael@0: # and follow it with the expected output. Then run urltest on michael@0: # this file and hopefully the expected output should match the michael@0: # one from the program. michael@0: # - Gagan Saksena 03/28/00 michael@0: michael@0: http://username:password@hostname.com:80/pathname/./more/stuff/../path michael@0: http,username:password,hostname.com,80,,/pathname/more/path michael@0: michael@0: username@host:8080/path michael@0: ,username,host,8080,,/path michael@0: michael@0: http://gagan/ michael@0: http,,gagan,-1,,/ michael@0: michael@0: scheme:host/netlib michael@0: scheme,,host,-1,,/netlib michael@0: michael@0: mailbox:///foo michael@0: mailbox,,,-1,,/foo michael@0: michael@0: scheme:user@hostname.edu:80/pathname michael@0: scheme,user,hostname.edu,80,,/pathname michael@0: michael@0: http://username:password@hostname:80/pathname michael@0: http,username:password,hostname,80,,/pathname michael@0: michael@0: resource:/pathname michael@0: resource,,,-1,,/pathname michael@0: michael@0: ftp://uname%here.com:pwd@there.com/aPath/a.html michael@0: ftp,uname%here.com:pwd,there.com,-1,,/aPath/a.html michael@0: michael@0: http://www.inf.bme.hu?foo=bar michael@0: http,,www.inf.bme.hu,-1,foo=bar,/?foo=bar michael@0: michael@0: http://test.com/aPath/a.html#/1/2 michael@0: http,,test.com,-1,,/aPath/a.html#/1/2 michael@0: michael@0: http://user:pass@ipaddres:2/get?foo/something michael@0: http,user:pass,ipaddres,2,foo/something,/get?foo/something