Testing basic http authenticaation with digest using curl
Finally I am able to fix the problem. Here is how I used curl to test http basic authentication with digest
curl --data {"red":"00"} --digest -u "username:password" "http://localhost:3000/api/statistics"