Right! I see the "Note that the "/" between the host (or port) and the url-path is NOT part of the url-path." line.

Ok, I think it's ready to go with just the simple concatenation & replace then :)