尝试 POST 到 AWS 端点时出现卷曲错误

Curl Error when trying to POST to AWS endpoint

我得到了

错误:{"error":"Unexpected token ‘"}

与下面的 curl command

什么给了?

curl -X POST \
-H "X-Parse-Application-Id:SomeID" \
-H "Content-Type: application/json" \
-d ‘{“number”:"3016524500"}’ \
http://somedomain.com/parse/functions/testFunction

求推荐。

我认为问题在于您使用的字符与实际的 ' 和 " 字符不同。请尝试将 ” 替换为 " 并将 ‘ 替换为 '。