The webpage is abundantly clear. Post JSON. Get Flag!

curl -X POST <http://localhost:5666/index.php> \\-H "Content-Type: application/json" \\-d '{"flag": "give_me_flag"}'