urltests.dat 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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
  8. http://username:password@hostname.com:80/pathname/./more/stuff/../path
  9. http,username:password,hostname.com,80,,/pathname/more/path
  10. username@host:8080/path
  11. ,username,host,8080,,/path
  12. http://gagan/
  13. http,,gagan,-1,,/
  14. scheme:host/netlib
  15. scheme,,host,-1,,/netlib
  16. mailbox:///foo
  17. mailbox,,,-1,,/foo
  18. scheme:user@hostname.edu:80/pathname
  19. scheme,user,hostname.edu,80,,/pathname
  20. http://username:password@hostname:80/pathname
  21. http,username:password,hostname,80,,/pathname
  22. resource:/pathname
  23. resource,,,-1,,/pathname
  24. ftp://uname%here.com:pwd@there.com/aPath/a.html
  25. ftp,uname%here.com:pwd,there.com,-1,,/aPath/a.html
  26. http://www.inf.bme.hu?foo=bar
  27. http,,www.inf.bme.hu,-1,foo=bar,/?foo=bar
  28. http://test.com/aPath/a.html#/1/2
  29. http,,test.com,-1,,/aPath/a.html#/1/2
  30. http://user:pass@ipaddres:2/get?foo/something
  31. http,user:pass,ipaddres,2,foo/something,/get?foo/something