Refractor code, change API (use {"url": "<url>"} rather than "<url>") to support passworded URLs.