Optional parameters on request::getUrl() to help testing.