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
