Add new url_server utility function and make use of it