Expand http://hostname:port to http://hostname:port/v1/ on the login command.