Ideally, you'd want to just pass in the username and password, and have the method determine what URL to send the request to.