Debian lenny version packages
[pkg-perl] / deb-src / liburi-perl / liburi-perl-1.35.dfsg.1 / t / roytest3.html
1 <HTML><HEAD>
2 <TITLE>Examples of Resolving Relative URLs, Part 3</TITLE>
3 <BASE href="http://a/b/c/d;p=1/2?q">
4 </HEAD><BODY>
5 <H1>Examples of Resolving Relative URLs, Part 3</H1>
6
7 This document has an embedded base URL of
8 <PRE>
9    Content-Base: http://a/b/c/d;p=1/2?q
10 </PRE>
11 the relative URLs should be resolved as shown below.  For this test page,
12 I am particularly interested in testing whether "/" in parameters is or is not
13 treated as part of the path hierarchy.
14 <P>
15 I will need your help testing the examples on multiple browsers. 
16 What you need to do is point to the example anchor and compare it to the
17 resolved URL in your browser (most browsers have a feature by which you
18 can see the resolved URL at the bottom of the window/screen when the anchor
19 is active).
20
21 <H2>Tested Clients and Client Libraries</H2>
22
23 <DL COMPACT>
24 <DT>[R]
25 <DD>RFC 2396 (the right way to parse)
26 <DT>[X]
27 <DD>RFC 1808
28 <DT>[1]
29 <DD>Mozilla/4.03 [en] (X11; U; SunOS 5.5 sun4u; Nav)
30 <DT>[2]
31 <DD>Lynx/2.7.1 libwww-FM/2.14
32 <DT>[3]
33 <DD>MSIE 3.01; Windows 95
34 <DT>[4]
35 <DD>NCSA_Mosaic/2.6 (X11;SunOS 4.1.2 sun4m) libwww/2.12
36 </DL>
37
38 <H3>Synopsis</H3>
39
40 RFC 1808 specified that the "/" character within parameter information
41 does not affect the hierarchy within URL parsing.  It would appear that
42 it does in current practice.  This implies that the parameters should
43 be part of each path segment and not outside the path.  The URI draft has
44 been written accordingly.
45
46 <H2>Examples</H2>
47 <PRE>
48               RESULTS                     from
49
50 <a href="g">g</a>          =  http://a/b/c/d;p=1/g        [R,1,2,3,4]
51               http://a/b/c/g              [X]
52
53 <a href="./g">./g</a>        =  http://a/b/c/d;p=1/g        [R,1,2,3,4]
54               http://a/b/c/g              [X]
55
56 <a href="g/">g/</a>         =  http://a/b/c/d;p=1/g/       [R,1,2,3,4]
57               http://a/b/c/g/             [X]
58
59 <a href="g?y">g?y</a>        =  http://a/b/c/d;p=1/g?y      [R,1,2,3,4]
60               http://a/b/c/g?y            [X]
61
62 <a href=";x">;x</a>         =  http://a/b/c/d;p=1/;x       [R,1,2,3,4]
63               http://a/b/c/d;x            [X]
64
65 <a href="g;x">g;x</a>        =  http://a/b/c/d;p=1/g;x      [R,1,2,3,4]
66               http://a/b/c/g;x            [X]
67
68 <a href="g;x=1/./y">g;x=1/./y</a>  =  http://a/b/c/d;p=1/g;x=1/y  [R,1,2,3,4]
69               http://a/b/c/g;x=1/./y      [X]
70
71 <a href="g;x=1/../y">g;x=1/../y</a> =  http://a/b/c/d;p=1/y        [R,1,2,3,4]
72               http://a/b/c/g;x=1/../y     [X]
73
74 <a href="./">./</a>         =  http://a/b/c/d;p=1/         [R,1,2,3,4]
75               http://a/b/c/               [X]
76
77 <a href="../">../</a>        =  http://a/b/c/               [R,1,2,3,4]
78               http://a/b/                 [X]
79
80 <a href="../g">../g</a>       =  http://a/b/c/g              [R,1,2,3,4]
81               http://a/b/g                [X]
82
83 <a href="../../">../../</a>     =  http://a/b/                 [R,1,2,3,4]
84               http://a/                   [X]
85
86 <a href="../../g">../../g</a>    =  http://a/b/g                [R,1,2,3,4]
87               http://a/g                  [X]
88 </PRE>
89 </BODY></HTML>