Use url.parse() to get proxy host and port