uri.dat 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. Format of this file is as follows:
  2. Each section begins with a line starting with a colon (:).
  3. The first line is the URI that is input or the text Components
  4. to indicate that the component parts should be the input. The
  5. second line is the URI that should be output using the URI
  6. property. The third line is the full URI. The following lines
  7. are the components of the URI in the following order: protocol,
  8. host, path, document, port, username, password, parameters, bookmark.
  9. Lines following these until the next line beginning with
  10. a colon (and the text folowing the colon on that line) can
  11. be used for comments.
  12. : Test 1, Basic, with trailing slash missing.
  13. http://www.nevrona.com
  14. http://www.nevrona.com/
  15. http://www.nevrona.com/
  16. http
  17. www.nevrona.com
  18. /
  19. : Test 2, Reverse basic
  20. Components
  21. http://www.nevrona.com/
  22. http://www.nevrona.com/
  23. http
  24. www.nevrona.com
  25. /
  26. : Test 3, Add a document
  27. ftp://www.nevrona.com/document
  28. ftp://www.nevrona.com/document
  29. ftp://www.nevrona.com/document
  30. ftp
  31. www.nevrona.com
  32. /
  33. document
  34. : Test 4, Reverse document
  35. Components
  36. ftp://www.nevrona.com/document
  37. ftp://www.nevrona.com/document
  38. ftp
  39. www.nevrona.com
  40. /
  41. document
  42. : Test 5, Add a path
  43. http://www.nevrona.com/path/document
  44. http://www.nevrona.com/path/document
  45. http://www.nevrona.com/path/document
  46. http
  47. www.nevrona.com
  48. /path/
  49. document
  50. : Test 6, Reverse path
  51. http://www.nevrona.com/path/document
  52. http://www.nevrona.com/path/document
  53. http://www.nevrona.com/path/document
  54. http
  55. www.nevrona.com
  56. /path/
  57. document
  58. : Test 7, Path, but no document
  59. http://www.nevrona.com/path/
  60. http://www.nevrona.com/path/
  61. http://www.nevrona.com/path/
  62. http
  63. www.nevrona.com
  64. /path/
  65. : Test 8, Reverse test 7
  66. Components
  67. http://www.nevrona.com/path/
  68. http://www.nevrona.com/path/
  69. http
  70. www.nevrona.com
  71. /path/
  72. : Test 9, Path, but no document
  73. http://www.nevrona.com/path/
  74. http://www.nevrona.com/path/
  75. http://www.nevrona.com/path/
  76. http
  77. www.nevrona.com
  78. /path/
  79. : Test 10, Reverse 9
  80. Components
  81. http://www.nevrona.com/path/
  82. http://www.nevrona.com/path/
  83. http
  84. www.nevrona.com
  85. /path/
  86. : Test 11, Multiple paths
  87. http://www.nevrona.com/path1/path2/path3/path4/
  88. http://www.nevrona.com/path1/path2/path3/path4/
  89. http://www.nevrona.com/path1/path2/path3/path4/
  90. http
  91. www.nevrona.com
  92. /path1/path2/path3/path4/
  93. : Test 12, Reverse 11
  94. Components
  95. http://www.nevrona.com/path1/path2/path3/path4/
  96. http://www.nevrona.com/path1/path2/path3/path4/
  97. http
  98. www.nevrona.com
  99. /path1/path2/path3/path4/
  100. : Test 13, CGI
  101. http://www.nevrona.com/cgi-bin/example.cgi?parameter=1&parameter=2
  102. http://www.nevrona.com/cgi-bin/example.cgi?parameter=1&parameter=2
  103. http://www.nevrona.com/cgi-bin/example.cgi?parameter=1&parameter=2
  104. http
  105. www.nevrona.com
  106. /cgi-bin/
  107. example.cgi
  108. ?parameter=1&parameter=2
  109. : Test 14, Reverse 13
  110. Components
  111. http://www.nevrona.com/cgi-bin/example.cgi?parameter=1&parameter=2
  112. http://www.nevrona.com/cgi-bin/example.cgi?parameter=1&parameter=2
  113. http
  114. www.nevrona.com
  115. /cgi-bin/
  116. example.cgi
  117. ?parameter=1&parameter=2
  118. : Test 15, Component flexing without parameters
  119. http://username:[email protected]:12345/path1/path2/path3/path4/document#bookmark
  120. http://www.nevrona.com:12345/path1/path2/path3/path4/document
  121. http://username:[email protected]:12345/path1/path2/path3/path4/document#bookmark
  122. http
  123. www.nevrona.com
  124. /path1/path2/path3/path4/
  125. document
  126. 12345
  127. username
  128. password
  129. bookmark
  130. : Test 16, Component flexing without parameters
  131. Components
  132. http://www.nevrona.com:12345/path1/path2/path3/path4/document
  133. http://username:[email protected]:12345/path1/path2/path3/path4/document#bookmark
  134. http
  135. www.nevrona.com
  136. /path1/path2/path3/path4/
  137. document
  138. 12345
  139. username
  140. password
  141. bookmark
  142. : Test 17, Component flexing with parameters
  143. http://username:[email protected]:12345/path1/path2/path3/path4/document?parameter=32&parameter=43#bookmark
  144. http://www.nevrona.com:12345/path1/path2/path3/path4/document?parameter=32&parameter=43
  145. http://username:[email protected]:12345/path1/path2/path3/path4/document?parameter=32&parameter=43#bookmark
  146. http
  147. www.nevrona.com
  148. /path1/path2/path3/path4/
  149. document
  150. 12345
  151. username
  152. password
  153. ?parameter=32&parameter=43
  154. bookmark
  155. : Test 18, Real world example reported as erroring.
  156. ftp://aUser:[email protected]:12345/aPath/aDocum
  157. ftp://some.place.org:12345/aPath/aDocum
  158. ftp://aUser:[email protected]:12345/aPath/aDocum
  159. ftp
  160. some.place.org
  161. /aPath/
  162. aDocum
  163. 12345
  164. aUser
  165. aPassword