parse_url is the same in both. I changed it to support username/password in subman.