Send only the path and the query when making HTTP requests
Deal with empty url.path