Change URL parsing, add HTTP proxy support