Execute following command on your bash shell
$ curl http://localhost:8080
{"message":"you are not logged in!!!"}
Execute following command on your bash shell
$ curl -u user:password http://localhost:8080
where user is the username and password is the password.
{"message":"you are logged in. current time is Tue Sep 19 20:03:49 EDT 2017"}