1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
started
p1=1
p2=toto
----------------------
p1=1
p2=toto
----------------------
URI = /get_it
URL = http://localhost:port/get_it?p1=1&p2=toto
Query = p1=1&p2=toto
Path = /
Pathname = /get_it
File = get_it
Parameters = ?p1=1&p2=toto
Server_Name = localhost
p1=0956
p2=uuu
----------------------
p1=0956
p2=uuu
----------------------
URI = /get_it/disk.html
URL = http://localhost:port/get_it/disk.html?p1=0956&p2=uuu
Query = p1=0956&p2=uuu
Path = /get_it/
Pathname = /get_it/disk.html
File = disk.html
Parameters = ?p1=0956&p2=uuu
Server_Name = localhost
shutdown
------------------------------------------------------
Testing Relative URL Resolution - RFC 2557 Section 5.2
Base: http://a/b/c/d;p?q=q
----------------------
Normal Examples:
g:h -> g:h
g -> http://a/b/c/g
./g -> http://a/b/c/g
g/ -> http://a/b/c/g/
/g -> http://a/g
//g/ -> http://g/
?y=y -> http://a/b/c/d;p?y=y
g?y=y -> http://a/b/c/g?y=y
#s -> http://a/b/c/d;p?q=q#s
g#s -> http://a/b/c/g#s
g?y=y#s -> http://a/b/c/g?y=y#s
;x -> http://a/b/c/;x
g;x -> http://a/b/c/g;x
g;x?y=y#s -> http://a/b/c/g;x?y=y#s
-> http://a/b/c/d;p?q=q
. -> http://a/b/c/
./ -> http://a/b/c/
.. -> http://a/b/
../ -> http://a/b/
../g -> http://a/b/g
../.. -> http://a/
../../ -> http://a/
../../g -> http://a/g
Too much '..':
../../../g -> http://a/g
../../../../g -> http://a/g
Do not remove '.' and '..' in path components:
/./g -> http://a/g
/../g -> http://a/g
g. -> http://a/b/c/g.
.g -> http://a/b/c/.g
g.. -> http://a/b/c/g..
..g -> http://a/b/c/..g
Unnecessary '.' and '..':
./../g -> http://a/b/g
./g/. -> http://a/b/c/g/
g/./h -> http://a/b/c/g/h
g/../h -> http://a/b/c/h
g;x=1/./y -> http://a/b/c/g;x=1/y
g;x=1/../y -> http://a/b/c/y
Separate query and fragment:
g?y=/./x -> http://a/b/c/g?y=/./x
g?y=/../x -> http://a/b/c/g?y=/../x
g#s/./x -> http://a/b/c/g#s/./x
g#s/../x -> http://a/b/c/g#s/../x
No scheme in relative URI (strict):
http:g -> http:g
|