Add parameters to get_url for the url username/password

Fixes #6928
Merge pull request #7138 from jimi-c/issue_6928_get_url_password

Add parameters to get_url for the url username/password