Jdizzle Foshizzle
Jdizzle Foshizzle

Reputation: 314

Curl Error when trying to POST to AWS endpoint

I got

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

with the curl command below.

What gives?

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

Please suggest.

Upvotes: 0

Views: 82

Answers (1)

Zach
Zach

Reputation: 566

I think the issue is that you're using different characters than the actual ' and " characters. Try replacing ” with " and ‘ with '.

Upvotes: 1

Related Questions