New to curl & terminal... getting : zsh: parse error near `}'
Two issues: The shell won't acknowledge acknowledge curly "smart quotes" as syntax; and a heredoc needs to have a newline before its content starts, and after it ends. Compare to:
curl -i -X POST "http://127.0.0.1:8080/api/user/login" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ —data-binary @- <<EOF{"email": "mail.xxx.com", "password": "XXX"}EOF
Community Wiki since this question probably should be closed as caused by a typo, or could be closed as duplicative of two preexisting questions -- one on the quoting issue, another on one-liner heredocs.