Rewrote transport to use javas URL.