The in-browser terminal currently only communicates with a connected Notecard whereas curl is a ‘unix’ command. Thus you’ll want to open a Linux, Mac, or Windows WSL terminal.
Alternatively, you could use an online tool like POST notehub token request to craft the POST request and to send it.